Sha256: 11361e793a9bad3b80b3179fc3f150abfa0d3bce12b0f5309e00d73e1e1d0e14

Contents?: true

Size: 348 Bytes

Versions: 101

Compression:

Stored size: 348 Bytes

Contents

require "knj/autoload"

class MainWindow
  def initialize
    button = Gtk::Button.new("Test")
    
    button.signal_connect("clicked") do
      Gtk.main_quit
    end
    
    win = Gtk::Window.new
    win.add button
    win.show_all
  end

  def on_button1_clicked(object, event)
    print "hmm\n"
  end
end

main_window = MainWindow.new
Gtk.main

Version data entries

101 entries across 101 versions & 1 rubygems

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