Introduction with Sample Code: GUI (Gtk) require 'gtk' window = Gtk::Window::new(Gtk::WINDOW_TOPLEVEL) box = Gtk::VBox::new(false, 0) window.add(box) button = Gtk::Button::new("hello") button.signal_connect("clicked") {print "hello\n"} box.pack_start(button, true, true, 0) button.show button = Gtk::Button::new("quit") button.signal_connect("clicked") {window.destroy; exit} box.pack_start(button, true, true, 0) button.show box.show window.show Gtk::main()