Displaying 2 results from an estimated 2 matches for "mixed_arg".
Did you mean:
mixed_args
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
...''wx''
module Wx
# Return the real arguments from the specified arguments definition and
# the supplied mixed arguments
# args_def : the ordered list of arguments with default value
# e.g. [ [:proportion, 0], [:flag, 0], [:border, 0] ]
def self.args_as_list(args_def, *mixed_args)
# get keyword arguments from mixed_args if supplied, else empty
kwa = mixed_args.last.kind_of?(Hash) ? mixed_args.pop : {}
out_args = []
args_def.each_with_index do | (arg_name, arg_value), i |
if arg = mixed_args[i] # use the supplied list arg
out_args << arg...
2007 Sep 28
1
WxWizard Error
...39;
from wizard.rb:37:in `initialize''
from wizard.rb:70:in `new''
from wizard.rb:70:in `on_init''
from wizard.rb:80:in `main_loop''
from wizard.rb:80
>Exit code: 1
From reading this, it looks as though :bitmap is not being loaded into
the mixed_args from the args_as_list method.
In another example, I''ve fixed this problem, cause I have logo
desginated, but it still errors out from another part of Wx::Wizard,
which is Wx::SimpleWizardPage.
>ruby RubyIM.rb
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/keyword_...