Sha256: a9da9e291d1b6d231a29421b7ff3361cf8433a458c7eeb313174d2bc12a7941c

Contents?: true

Size: 263 Bytes

Versions: 101

Compression:

Stored size: 263 Bytes

Contents

require "knj/autoload"

button = Gtk::Button.new("Test")
button.signal_connect("clicked") do
  print "Clicked!\n"
end

win = Gtk::Window.new("Trala")
win.add(button)
win.show_all

win.signal_connect("destroy") do
  print "Destroy!\n"
  Gtk.main_quit
end

Gtk.main

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.29 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.28 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.27 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.26 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.25 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.24 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.23 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.22 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.21 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.20 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.19 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.18 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.17 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.16 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.15 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.14 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.13 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.12 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.11 lib/knj/jruby-gtk2/tests/test_normal_window.rb
knjrbfw-0.0.10 lib/knj/jruby-gtk2/tests/test_normal_window.rb