Sha256: 26cc2ebff45ae728dcbb9657ad998145c18b3b487638031fd7f0dfcdd33d975c

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

require 'rui'

RUI::Application.init('autogui') do |app|
  widget = Qt::Widget.new
  widget.gui = RUI::autogui do
    layout(:type => :vertical) do
      button(:name => :quit, :text => "Quit")
    end
  end
  widget.quit.on(:clicked) { app.exit }
  widget.show
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rui-0.1.2 examples/autogui/main.rb
rui-0.1.0 examples/autogui/main.rb