diff options
Diffstat (limited to 'korundum/rubylib/tutorials')
-rw-r--r-- | korundum/rubylib/tutorials/p2/p2.rb | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/korundum/rubylib/tutorials/p2/p2.rb b/korundum/rubylib/tutorials/p2/p2.rb index a9647fef..50dce77f 100644 --- a/korundum/rubylib/tutorials/p2/p2.rb +++ b/korundum/rubylib/tutorials/p2/p2.rb @@ -1,12 +1,11 @@ -require 'Korundum'
-
- about = KDE::AboutData.new("p2", "Hello World", "0.1")
- KDE::CmdLineArgs.init(ARGV, about)
- a = KDE::Application.new()
- hello = TQt::PushButton.new( a.i18n("Hello World !"), nil )
- hello.autoResize = true
-
- a.mainWidget = hello
- hello.show
-
- a.exec
\ No newline at end of file +require 'Korundum' + + about = KDE::AboutData.new("p2", "Hello World", "0.1") + KDE::CmdLineArgs.init(ARGV, about) + a = KDE::Application.new() + hello = TQt::PushButton.new( a.i18n("Hello World !"), nil ) + + a.mainWidget = hello + hello.show + + a.exec |