[wxruby-users] xml.load_panel

Alex Fenton alex at pressure.to
Wed Aug 27 05:12:13 EDT 2008


Max Salov wrote:
> Hm, 'super()' call raises error in NewPanel#initalize, while in 
> MainFrame#initialize it works perfectly.
>
> c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.7-i386-mswin32/lib/wx/keyword_ctors.rb:180:in 
> `pre_wx_kwctor_init': wrong # of arguments(0 for 1) (ArgumentError)
>   from 
> c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.7-i386-mswin32/lib/wx/keyword_ctors.rb:180:in 
> `initialize'
>   
Hmm, I get the same error with 1.9.7. I had originally tried with the 
current SVN version, which works fine, although I'm not quite sure 
what's changed. Perhaps someone with the latest development version 
could confirm that this is fixed there?

> And one more question regarding events. What happens to events, 
> assosiated to destroyed objects?
As Mario says, wxRuby, and wxWidgets deal with this internally.

alex


More information about the wxruby-users mailing list