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-3.1.8-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.8-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.8 sample/misc/entry.rb
gtk3-3.1.7-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.7-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.7 sample/misc/entry.rb
gtk3-3.1.6-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.6-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.6 sample/misc/entry.rb
gtk3-3.1.5-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.5-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.4-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.4-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.4 sample/misc/entry.rb
gtk3-3.1.3-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.3-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.3 sample/misc/entry.rb
gtk3-3.1.2-x64-mingw32 sample/misc/entry.rb
gtk3-3.1.2-x86-mingw32 sample/misc/entry.rb
gtk3-3.1.2 sample/misc/entry.rb