deeper freeze and kdebindings

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Nov 11 13:02:41 GMT 2003


On Tuesday 11 November 2003 12:13, Guillaume Laurent wrote:
> On Tuesday 11 November 2003 12:42, Richard Dale wrote:
> >  But now I really think the QtRuby bindings are getting to the stage
> > where they 'just work'
>
> YES! That's the good news of the day, thank you for your work on this :-).
Thanks, here's an example program to show what KDE programming looks like in 
ruby:

require 'Korundum'

class MyWidget < KDE::PushButton
	k_dcop 'mySlot()'
	
	def initialize(parent, name)
		super(parent, name)
	end
	
	def mySlot()
		puts "In mySlot"
	end
end

about = KDE::AboutData.new("dcopslot", "two", "three")
KDE::CmdLineArgs.init(1, ["dcopslot"], about)
a = KDE::Application.new()
hello = MyWidget.new(nil, "foobar") { setText "Hello World" }
a.mainWidget = hello
hello.show()
a.exec()




More information about the kde-core-devel mailing list