search for: presionado

Displaying 1 result from an estimated 1 matches for "presionado".

Did you mean: impresionado
2010 Mar 30
2
My first wxRuby app doesn't work, please help!
...evt_button(@my_button.get_id()) { |event| my_button_click(event)} @sizer.add(@lbl1,0, GROW|ALL,2) @sizer.add(@text1,0, GROW|ALL,2) @sizer.add(@combo,0, GROW|ALL,2) @sizer.add(@button,0, GROW|ALL,2) show() end def my_button_click(event) #añádir codigo puts "Presionado" end end class Myapp < App def on_init MyFrame.new end end a= Myapp.new a.main_loop() When I run this, I get an illegal operation! I am using wxRuby 2.0.1, Ruby 1.8 (one click installer version) and windows xp. Thanks for any info. -- Posted via http://www.ruby-forum.com/. _...