Sha256: b74c267f5e6b0a06d9535c5b373ed7ab1b986a22e61afa38e5351ee394e9863f

Contents?: true

Size: 602 Bytes

Versions: 149

Compression:

Stored size: 602 Bytes

Contents

#!/usr/bin/env ruby
=begin
  entry.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: entry.rb,v 1.9 2006/06/17 13:18:12 mutoh Exp $
=end

require 'gtk2'

window = Gtk::Window.new("entry")
window.border_width = 0

box1 = Gtk::VBox.new(false, 10)
window.add(box1)

entry = Gtk::Entry.new

box1.add(entry)
box1.add(Gtk::HSeparator.new)

button = Gtk::Button.new("close")
button.signal_connect("clicked") do
  Gtk.main_quit
end
box1.add(button)

window.show_all

entry.text = "hello world"

Gtk.main

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
gtk2-3.2.2-x64-mingw32 sample/misc/entry.rb
gtk2-3.2.2-x86-mingw32 sample/misc/entry.rb
gtk2-3.2.2 sample/misc/entry.rb
gtk2-3.2.1-x64-mingw32 sample/misc/entry.rb
gtk2-3.2.1-x86-mingw32 sample/misc/entry.rb
gtk2-3.2.1 sample/misc/entry.rb
gtk2-3.2.0-x86-mingw32 sample/misc/entry.rb
gtk2-3.2.0-x64-mingw32 sample/misc/entry.rb
gtk2-3.2.0 sample/misc/entry.rb
gtk2-3.1.9-x86-mingw32 sample/misc/entry.rb
gtk2-3.1.9-x64-mingw32 sample/misc/entry.rb
gtk2-3.1.9 sample/misc/entry.rb
gtk2-3.1.8-x64-mingw32 sample/misc/entry.rb
gtk2-3.1.8-x86-mingw32 sample/misc/entry.rb
gtk2-3.1.8 sample/misc/entry.rb
gtk2-3.1.7-x64-mingw32 sample/misc/entry.rb
gtk2-3.1.7-x86-mingw32 sample/misc/entry.rb
gtk2-3.1.7 sample/misc/entry.rb
gtk2-3.1.6-x64-mingw32 sample/misc/entry.rb
gtk2-3.1.6-x86-mingw32 sample/misc/entry.rb