Sha256: cc68e07f23c78e895ca073d20b9b16f87524306826f4c8b0f8c80a0b1f442c25

Contents?: true

Size: 612 Bytes

Versions: 38

Compression:

Stored size: 612 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 '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)

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

Gtk.main

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
gtk3-2.2.5-x64-mingw32 sample/misc/expander.rb
gtk3-2.2.5-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.5 sample/misc/expander.rb
gtk3-2.2.4-x64-mingw32 sample/misc/expander.rb
gtk3-2.2.4-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.4 sample/misc/expander.rb
gtk3-2.2.3-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.3 sample/misc/expander.rb
gtk3-2.2.2-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.2 sample/misc/expander.rb
gtk3-2.2.1-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.1 sample/misc/expander.rb
gtk3-2.2.0-x86-mingw32 sample/misc/expander.rb
gtk3-2.2.0 sample/misc/expander.rb
gtk3-2.1.0-x86-mingw32 sample/misc/expander.rb
gtk3-2.1.0 sample/misc/expander.rb
gtk3-2.0.3-x86-mingw32 sample/misc/expander.rb
gtk3-2.0.3 sample/misc/expander.rb
gtk3-2.0.2-x86-mingw32 sample/misc/expander.rb
gtk3-2.0.2 sample/misc/expander.rb