Sha256: 08afe19202cf749c0707c8307a3ad725580af53c714b9e66005868e6acd3ad19
Contents?: true
Size: 469 Bytes
Versions: 119
Compression:
Stored size: 469 Bytes
Contents
#!/usr/bin/env ruby require 'gtk2' label=Gtk::Label.new.show info=Gtk::InfoBar.new info.no_show_all=true info.content_area.add(label) info.add_button(Gtk::Stock::OK, Gtk::ResponseType::OK) info.signal_connect('response'){|info, response| info.hide} w=Gtk::Window.new w.add(info) w.show_all w.signal_connect("delete_event"){Gtk.main_quit} GLib::Timeout.add_seconds(1){ label.text='ERROR' info.message_type=Gtk::MessageType::ERROR info.show false } Gtk.main
Version data entries
119 entries across 119 versions & 1 rubygems