Sha256: f2aa18a61baedc179568354a1753bf0edce18d64f077dcc6fb3b690ddfca8e62

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 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

4 entries across 4 versions & 1 rubygems

Version Path
knjrbfw-0.0.8 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.7 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.4 lib/knj/jruby-gtk2/builder/test_builder.rb
knjrbfw-0.0.3 lib/knj/jruby-gtk2/builder/test_builder.rb