Sha256: 9b47b9a70930f0576479dfb34e3919f4a62e353e8003ebc08b86a9d43475ae16
Contents?: true
Size: 572 Bytes
Versions: 151
Compression:
Stored size: 572 Bytes
Contents
#!/usr/bin/env ruby =begin expander.rb - Ruby/GTK2 sample script. Copyright (c) 2004-2015 Ruby-GNOME2 Project Team This program is licenced under the same licence as Ruby-GNOME2. =end require "gtk3" expander = Gtk::Expander.new("Expander Sample") expander.expanded = true button = Gtk::Button.new(:label => "Hide this button.") button.signal_connect("clicked") do expander.expanded = false end button.set_size_request(200, 200) expander.add(button) win = Gtk::Window.new win.add(expander) win.show_all win.signal_connect("destroy"){Gtk.main_quit} Gtk.main
Version data entries
151 entries across 143 versions & 2 rubygems