summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/tutorials/p2/p2.rb
blob: b2c6d03c2c39bd3c8674428778128a2a6cad73f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'Korundum'
 
    about = KDE::AboutData.new("p2", "Hello World", "0.1")
    KDE::CmdLineArgs.init(ARGV, about)
    a = KDE::Application.new()
    hello = Qt::PushButton.new( a.i18n("Hello World !"), nil )
    hello.autoResize = true
        
    a.mainWidget = hello
    hello.show
        
    a.exec