Sha256: 64b28fa5df7b4326f09e5ef9f0b0665a781bc8d67d5c62874be1ce0c14d41656

Contents?: true

Size: 572 Bytes

Versions: 151

Compression:

Stored size: 572 Bytes

Contents

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

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

require "gtk3"

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

box1 = Gtk::Box.new(:vertical, 10)
window.add(box1)

entry = Gtk::Entry.new

box1.add(entry)
box1.add(Gtk::Separator.new(:horizontal))

button = Gtk::Button.new(:label => "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

151 entries across 143 versions & 2 rubygems

Version Path
gtk3-4.2.4 sample/misc/entry.rb
gtk3-4.2.3 sample/misc/entry.rb
gtk3-4.2.2 sample/misc/entry.rb
gtk3-4.2.1 sample/misc/entry.rb
gtk3-4.2.0 sample/misc/entry.rb
gtk3-4.1.9 sample/misc/entry.rb
gtk3-4.1.8 sample/misc/entry.rb
gtk3-4.1.7 sample/misc/entry.rb
gtk3-4.1.6 sample/misc/entry.rb
gtk3-4.1.5 sample/misc/entry.rb
gtk3-4.1.4 sample/misc/entry.rb
gtk3-4.1.3 sample/misc/entry.rb
gtk3-4.1.2 sample/misc/entry.rb
gtk3-4.1.1 sample/misc/entry.rb
gtk3-4.1.0 sample/misc/entry.rb
gtk3-4.0.9 sample/misc/entry.rb
gtk3-4.0.8 sample/misc/entry.rb
gtk3-4.0.7 sample/misc/entry.rb
gtk3-4.0.6 sample/misc/entry.rb
gtk3-4.0.5 sample/misc/entry.rb