diff --git a/lib/wx/core/dialog.rb b/lib/wx/core/dialog.rb index 8b17fdd8..2f71d3d8 100644 --- a/lib/wx/core/dialog.rb +++ b/lib/wx/core/dialog.rb @@ -25,8 +25,8 @@ def self.included(klass) scope = klass.name.split('::') functor_nm = scope.pop code = <<~__CODE - def #{functor_nm}(*args, &block) - dlg = #{klass.name}.new(*args) + def #{functor_nm}(*args, **kwargs, &block) + dlg = #{klass.name}.new(*args, **kwargs) begin if block_given? return block.call(dlg)