Thread
:
Cant find Ruby GTK anywhere?
View Single Post
kaspernj
2010-01-14 , 13:08
Posts: 33 | Thanked: 44 times | Joined on Dec 2009
#
20
Here is a GtkBuilder-example, which works with my build (GtkBuilder is almost like Glade).
class MyWindow
def initialize
@gui = Gtk::Builder.new
@gui.add_from_file("gui/win_main.ui")
@gui.connect_signals(){|handler|method(handler)}
@window = @gui.get_object("window")
@window.show
end
def on_window_destroy
Gtk::main_quit
end
end
Quote & Reply
|
kaspernj
View Public Profile
Send a private message to kaspernj
Find all posts by kaspernj