require 'gtk' window = Gtk::Window.new(Gtk::WINDOW_TOPLEVEL) text = Gtk::Text.new window.add(text) text.show window.show Gtk.main