Sha256: 362f02f3cc072ca1b038fd9eec7f659ff8b24c1ead533848b080e5554399f3cd

Contents?: true

Size: 602 Bytes

Versions: 149

Compression:

Stored size: 602 Bytes

Contents

#!/usr/bin/env ruby
=begin
  expander.rb - Ruby/GTK2 sample script.

  Copyright (c) 2004-2006 Ruby-GNOME2 Project Team
  This program is licenced under the same licence as Ruby-GNOME2.

  $Id: expander.rb,v 1.3 2006/06/17 13:18:12 mutoh Exp $
=end

require 'gtk2'

expander = Gtk::Expander.new("Expander Sample")
expander.expanded = true

button = Gtk::Button.new("Hide this button.")
button.signal_connect("clicked") do
  expander.expanded = false
end

button.set_size_request(200, 200)
expander.add(button)

Gtk::Window.new.add(expander).show_all.signal_connect("destroy"){Gtk.main_quit}

Gtk.main

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
gtk2-3.1.6 sample/misc/expander.rb
gtk2-3.1.5-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.5-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.4-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.4-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.4 sample/misc/expander.rb
gtk2-3.1.3-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.3-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.3 sample/misc/expander.rb
gtk2-3.1.2-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.2-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.2 sample/misc/expander.rb
gtk2-3.1.1-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.1-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.1 sample/misc/expander.rb
gtk2-3.1.0-x64-mingw32 sample/misc/expander.rb
gtk2-3.1.0-x86-mingw32 sample/misc/expander.rb
gtk2-3.1.0 sample/misc/expander.rb
gtk2-3.0.9-x64-mingw32 sample/misc/expander.rb
gtk2-3.0.9-x86-mingw32 sample/misc/expander.rb