noreply at rubyforge.org
2008-Dec-17 07:51 UTC
[wxruby-development] [ wxruby-Bugs-23258 ] (sample bug) Toggle label button event handler of samples/controls.rb calls an undefined method.
Bugs item #23258, was opened at 2008-12-17 02:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=23258&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: (sample bug) Toggle label button event handler of samples/controls.rb calls an undefined method. Initial Comment: controls.rb:824:in `onupdateLabel'': undefined method ''get_int'' for #<Wx::Event:0 x2b6f254> (NoMethodError) line 824 of controls.rb @m_label.set_label(event.get_int() != 0 ? "Very very very very very long text." : "Shorter text.") ====> the following change can fix the problem. @m_label.set_label(event.get_event_object().get_value() ? "Very very very very very long text." : "Shorter text.") ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=23258&group_id=35