Sha256: 7b5ea3bfef409ab1854e6186ffaa004ce858efbe1ee3a9faa78846d9e284ab69

Contents?: true

Size: 623 Bytes

Versions: 47

Compression:

Stored size: 623 Bytes

Contents

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

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

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

require 'gtk2'

window = Gtk::Window.new("Gtk::Button sample")

button1 = Gtk::Button.new("_HELLO")
button2 = Gtk::Button.new("_HELLO", false)
button3 = Gtk::Button.new(Gtk::Stock::QUIT)  

button3.signal_connect("clicked"){ Gtk.main_quit }

box = Gtk::VBox.new
box.add(button1)
box.add(button2)
box.add(button3)

window.add(box).set_default_size(100,100).show_all

Gtk.main

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
gtk2-3.2.7-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.7-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.7 sample/misc/button2.rb
gtk2-3.2.6-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.6-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.6 sample/misc/button2.rb
gtk2-3.2.5-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.5-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.5 sample/misc/button2.rb
gtk2-3.2.4-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.4-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.4 sample/misc/button2.rb
gtk2-3.2.3-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.3-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.3 sample/misc/button2.rb
gtk2-3.2.2-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.2-x86-mingw32 sample/misc/button2.rb
gtk2-3.2.2 sample/misc/button2.rb
gtk2-3.2.1-x64-mingw32 sample/misc/button2.rb
gtk2-3.2.1-x86-mingw32 sample/misc/button2.rb