Sha256: 12ddd2b461afb05274f1de0747a4dbbc098a5d578f899a3b41e93c729b834b28

Contents?: true

Size: 846 Bytes

Versions: 101

Compression:

Stored size: 846 Bytes

Contents

require "gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"
require "glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"

RealGtk = Gtk
RealGtk::Application.init

Gtk = Class.new do
  class Window
    def initialize(title = "")
      @ob = RealGtk::Window.new(title)
    end
    
    def add(widget)
      @ob.add(widget.ob)
    end
    
    def show_all
      @ob.show_all
    end
  end
  
  class Button
    def initialize(title = nil)
      @ob = RealGtk::Button.new(title)
    end
    
    def ob
      return @ob
    end
    
    def signal_connect(signal, &block)
      @ob.send(signal) do |sender, e|
        block.call
      end
    end
  end
  
  def self.main
    RealGtk::Application.run
  end
  
  def self.main_quit
    RealGtk::Application.quit
  end
end

require "test_2.rb"

Version data entries

101 entries across 101 versions & 1 rubygems

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