faq
flatforty
contribute
subscribe
configure
search
rdf
main
parent
thread
|
Re: Benefits over KJSEmbed?
by aleXXX on Monday 20/Sep/2004, @11:19
|
IMO ruby is the simplest language I know of, some people call it executable pseudo code :-)
Web developers use javascript since ruby/perl/python aren't supported (AFAIK) as client-side web-scripting language.
Alex |
|
|
The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
Re: Benefits over KJSEmbed?
by Boudewijn Rempt on Monday 20/Sep/2004, @11:27
|
That was the line I always used to sell Python to management... Look! It's a design document you can run :-). I'm really happy that there's so much choice nowadays in bindings. Personally, if I have a suitable problem, I'd still go for PyQt, but I like my languages with as few punctuation marks as possible. Double colons remind me too much of the medical imagery I'm writing apps for nowadays.
Anyway, Cyrille Berger is working on a kjsembed plugin for Krita, and I'm going to get in touch with Jim Bublitz one of these days to ask him whether he can help me with a Python plugin.
|
[
Reply To This | View ]
|
Re: Benefits over KJSEmbed?
by Ian Monroe on Tuesday 21/Sep/2004, @07:35
|
Ruby may still need the occasional :: (especiall in RubyQt), but overall its fairly sparse in the punctuaction dept. No semicolons I guess being the biggest difference, as well as using begin and end to define most functions.
|
[
Reply To This | View ]
|
Re: Benefits over KJSEmbed?
by Richard Dale on Tuesday 21/Sep/2004, @08:32
|
Note than you can use an 'include Qt' or 'include KDE' directive if you prefer to have Widget over Qt::Widget, or Application over KDE::Application in your code. Thats much like the 'using' directive for C++ namespaces:
require 'Korundum'
include Qt
include KDE
about = AboutData.new("p2", "Hello World", "0.1")
CmdLineArgs.init(ARGV, about)
a = Application.new
hello = PushButton.new( a.i18n("Hello World !")
a.mainWidget = hello
hello.show
a.exec
|
[
Reply To This | View ]
|
Re: Benefits over KJSEmbed?
by Richard Dale on Tuesday 21/Sep/2004, @08:38
|
Oops, syntax error, it should be:
hello = PushButton.new(a.i18n("Hello World !"))
And PushButton is ambiguous, does it mean a QPushButton or a KPushButton in this case? So maybe use the include directive with care..
|
[
Reply To This | View ]
|
|
The Fine Print: The previous
comments are owned by whomever posted them.
( Reply )
|
|