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.49 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.48 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.47 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.46 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.45 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.44 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.43 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.42 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.41 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.40 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.39 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.38 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.37 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.36 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.35 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.34 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.33 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.32 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.31 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.30 lib/knj/jruby-gtk2/builder/test_builder.rb