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-3.1.8-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.8-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.8 sample/misc/expander.rb
gtk3-3.1.7-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.7-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.7 sample/misc/expander.rb
gtk3-3.1.6-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.6-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.6 sample/misc/expander.rb
gtk3-3.1.5-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.5-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.4-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.4-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.4 sample/misc/expander.rb
gtk3-3.1.3-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.3-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.3 sample/misc/expander.rb
gtk3-3.1.2-x64-mingw32 sample/misc/expander.rb
gtk3-3.1.2-x86-mingw32 sample/misc/expander.rb
gtk3-3.1.2 sample/misc/expander.rb