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

Version Path
gtk3-4.2.4 sample/misc/expander.rb
gtk3-4.2.3 sample/misc/expander.rb
gtk3-4.2.2 sample/misc/expander.rb
gtk3-4.2.1 sample/misc/expander.rb
gtk3-4.2.0 sample/misc/expander.rb
gtk3-4.1.9 sample/misc/expander.rb
gtk3-4.1.8 sample/misc/expander.rb
gtk3-4.1.7 sample/misc/expander.rb
gtk3-4.1.6 sample/misc/expander.rb
gtk3-4.1.5 sample/misc/expander.rb
gtk3-4.1.4 sample/misc/expander.rb
gtk3-4.1.3 sample/misc/expander.rb
gtk3-4.1.2 sample/misc/expander.rb
gtk3-4.1.1 sample/misc/expander.rb
gtk3-4.1.0 sample/misc/expander.rb
gtk3-4.0.9 sample/misc/expander.rb
gtk3-4.0.8 sample/misc/expander.rb
gtk3-4.0.7 sample/misc/expander.rb
gtk3-4.0.6 sample/misc/expander.rb
gtk3-4.0.5 sample/misc/expander.rb