3dc40d881051fac9788d708b3c5ca099

This is a very small KDE progamming based on the ruby-kde bindings korundum.
More infos: http://techbase.kde.org/Development/Languages/Ruby

Maybe it is useful for testing purposes.

Do you have any sugestions or improvements? Please don't hesitate to post it.

#!/usr/bin/env ruby

$KCODE = 'u'
require 'korundum4'

about = KDE::AboutData.new("ktest", "", KDE.ki18n("KTest"), "0.1")
KDE::CmdLineArgs.init(ARGV, about)
a = KDE::Application.new
w = KDE::PushButton.new( "Click me to quit" ) do
  connect( SIGNAL :clicked ) do
    puts "Do something else"
    KDE::Application.instance.quit
  end
end
w.show

a.exec

Refactorings

No refactoring yet !

Your refactoring





Format Copy from initial code

or Cancel