Sha256: 665210309b47818f9e6ca957b8e7c6754d5d69e1f0c50460f90fd3cf0b312b60

Contents?: true

Size: 290 Bytes

Versions: 101

Compression:

Stored size: 290 Bytes

Contents

require "knj/autoload"

class TestWindow
  def initialize
    @gui = Gtk::Builder.new
    @gui.add_from_file("test_builder.ui")
    @gui.connect_signals(){|h|method(h)}
    
    @gui["window1"].show_all
  end
  
  def on_window1_destroy
    Gtk.main_quit
  end
end

TestWindow.new

Gtk.main

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.116 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.115 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.114 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.113 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.111 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.110 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.109 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.108 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.107 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.105 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.104 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.103 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.102 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.101 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.100 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.99 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.98 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.97 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.96 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.95 lib/knj/jruby-gtk2/builder/test_builder.rb