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.94 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.93 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.92 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.91 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.90 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.89 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.88 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.87 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.86 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.85 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.84 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.83 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.82 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.81 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.80 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.79 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.78 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.77 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.75 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.74 lib/knj/jruby-gtk2/builder/test_builder.rb