summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/tutorials/p1/p1.rb
blob: a32edb7a6977402b9a22cf4972546e48f21df7f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'Qt'

    a = TQt::Application.new( ARGV )

    hello = TQt::PushButton.new( "Hello world!", nil )
    hello.resize( 100, 30 )
 
    TQt::Object::connect( hello, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()') )
 
    a.setMainWidget( hello )
    hello.show()
 
    a.exec()