search for: my_button_click

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

2010 Mar 30
2
My first wxRuby app doesn't work, please help!
...t;) @text1 = TextCtrl.new(@panel,-1,"Text Value") @combo =ComboBox.new(@panel,-1,"Combo Text") @button =Button.new(@panel,-1,"Submit") #layout @sizer = BoxSizer.new(VERTICAL) @panel.set_sizer(@sizer) 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_ini...