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