Displaying 2 results from an estimated 2 matches for "args_as_list".
Did you mean:
acts_as_list
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
...upporting keyword arguments to Sizer#add
following the thread below :
http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html
After a deeper look at lib/wx/keyword_ctors.rb and
lib/wx/keyword_defs.rb, I understood the whole thing :-).
I just reused and modified slightly the method args_as_list.
The new Sizer#add_item combines the features of add and insert in
addition to the support of keyword arguments.
Let me know what do you think about this proposal as this can be
applicable to ToolBar#add_tool as well.
So here is the proposal with a simple test application :
require ''wx...
2007 Sep 28
1
WxWizard Error
...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_ctors.rb:202:in
`initi...