Class: MainWindow
Instance Method Summary collapse
-
#initialize ⇒ MainWindow
constructor
A new instance of MainWindow.
- #on_button1_clicked(object, event) ⇒ Object
Constructor Details
#initialize ⇒ MainWindow
Returns a new instance of MainWindow.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/knj/ironruby-gtk2/tests/test_2.rb', line 4 def initialize = Gtk::Button.new("Test") .signal_connect("clicked") do Gtk.main_quit end win = Gtk::Window.new win.add win.show_all end |
Instance Method Details
#on_button1_clicked(object, event) ⇒ Object
16 17 18 |
# File 'lib/knj/ironruby-gtk2/tests/test_2.rb', line 16 def (object, event) print "hmm\n" end |