Skip to content

Commit

Permalink
Merge pull request #314 from mcorino/develop
Browse files Browse the repository at this point in the history
improve dialog functors to support user defined kwargs as well
  • Loading branch information
mcorino authored Oct 9, 2024
2 parents 8bc3598 + c0514d8 commit cbd2cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wx/core/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cbd2cf3

Please sign in to comment.