[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: deeper freeze and kdebindings
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2003-11-11 13:02:41
[Download RAW message or body]

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()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic