SWT / Ruby

After TK, GTk, FOX … etc
check the
http://www.rubyide.org/cgi-bin/wiki.pl?GUIFrameworkProject/GUIComparison

I would like to know, is there a ruby “adapter” for SWT ?
(SWT: The Standard Widget Toolkit http://www.eclipse.org )

Note: SWT is native graphic library, it should not difficult to have
Ruby “adapter” to use it …

Thx

I would like to know, is there a ruby “adapter” for SWT ?
(SWT: The Standard Widget Toolkit http://www.eclipse.org )

No.

Note: SWT is native graphic library, it should not difficult to have
Ruby “adapter” to use it …

I am reminded of the first question in the Management Quiz (from Scott
Adams’ “The Dilbert Principle”): “Do you believe that anything you don’t
understand must be easy to do?”

Note: SWT is native graphic library, it should not difficult to have
Ruby “adapter” to use it …

I am reminded of the first question in the Management Quiz (from Scott
Adams’ “The Dilbert Principle”): “Do you believe that anything you don’t
understand must be easy to do?”

I am sorry to ask this question too quickly.
You are absolute right, I did not understand SWT before ask question.
In fact, I know very well AWT/Swing, and just hear about SWT, people
tell me that is native implementation.
Yesterday, after I took a look; the SWT is using JNI to one-to-one map
to platform system API. The SWT is implement by using java, and one-to-one
JNI call. Which means if we want to have Ruby/SWT, I can only re-use the
SWT API interface (signture) to “compatible” with SWT, anything else
must re-implement. ( it is not kind of I thought: dll existe, just write
ruby interface; I still have to re-implement from scratch )

Lyle, I know you write the FOX/Python, FOX/Ruby.
Could you help me about this question?
In fact, I ask SWT, that is because, I want learn a GUI framework
that can re-use, ( for example, in java and in ruby, also multi-platform ).
Mmmm… let me explain my question, let’s say if you do not have much time,
and you want to pick up a GUI framework to learn, which one you suggest?
FOX ? TK? Gtk? Qt? …

Thanks for help.

Email55555 wrote:

In fact, I ask SWT, that is because, I want learn a GUI framework
that can re-use, ( for example, in java and in ruby, also multi-platform ).

I’m not sure I understand your requirements. If you’re wanting a GUI
framework that is both multi-platform and usable in Java and Ruby,
you’re narrowing the field pretty quickly. Have you considered using
JRuby (http://jruby.sourceforge.net)? I unfortunately haven’t had a
chance to look at this yet, but it’s my understanding that one can use
the Swing classes inside a JRuby application.

Mmmm… let me explain my question, let’s say if you do not have much time,
and you want to pick up a GUI framework to learn, which one you suggest?
FOX ? TK? Gtk? Qt? …

I’m obviously biased towards FOX, but I don’t really know how to answer
that question. If you’ve ever used one of them in some other language
(e.g. you’ve written a C program that used GTK+, or a Python program
that used PyQt) you should pick the one that you’re already familiar
with; it’s likely that most of your knowledge about how to use that
toolkit will transfer over to its Ruby binding. But if you don’t know
anything about any of the toolkits, you’ll probably want to start with
Ruby/Tk. There are a lot of people still using Ruby/Tk (or who have at
least used it in the past) and there’s some documentation for Ruby/Tk
here and there.

Note that my response is based on your restriction that you don’t have
much time. If you have more time, I would invest the effort in learning
how to use one of the others (i.e. FOX, GTK+ or Qt).

TK. Because you should start with the one with the most clean design.
FOX is not very OO (because of the message handling mechanism), Gtk
full of bugs (at least 1.4x) and i don’t know QT very well.

···

On 16 Aug 2002 06:16:32 -0700, tran55555@yahoo.com (Email55555) wrote:

FOX ? TK? Gtk? Qt? …

“Lyle Johnson” lyle@users.sourceforge.net wrote in message
news:3D5D171A.7040303@users.sourceforge.net

Note that my response is based on your restriction that you don’t have
much time. If you have more time, I would invest the effort in learning
how to use one of the others (i.e. FOX, GTK+ or Qt).

GTK isn’t really a serious option for Windows, although it is closing the
gap. The Visio clone “Dia” uses GTK on Windows with a decent but not
professional result.
Actually I’m surprised how little effort has been put into supporting GTK on
windows. Only a single developer in his sparetime - yet there is lots of
energy put into alternative solutions.

Mikkel

Lothar Scholz wrote:

TK. Because you should start with the one with the most clean design.

Could you elaborate on the aspects of Tk’s design that make it "cleaner"
than the others?

No i don’t have time to write a lot. But only 3 quick points that are
not solved in this quality anywhere else.

  1. Layout management with Packer, Grid, Placer.
    This is much cleaner and more powerful then FOX layout which mixes
    layout hints into widgets where they definitely don’t belong.

  2. Event handling.
    Never seen any toolkit that does support only 10% of the power
    that you get via TK.

  3. Clean Interface. Everything works as expected. I can’t remember
    that i had to deal with special cases.

  4. Powerful widgets. If you look and see what you can do with text
    canvas, html and table widgets then you will be surprised.

But there is a disadvantage why i also use FOX as you know from my
postings on the FOX mailing list:

TK is dead. Development is stalled and i can’t see anything
why this should change in the future.

···

On Fri, 16 Aug 2002 11:35:50 -0500, Lyle Johnson lyle@users.sourceforge.net wrote:

Lothar Scholz wrote:

TK. Because you should start with the one with the most clean design.

Could you elaborate on the aspects of Tk’s design that make it "cleaner"
than the others?

TK is dead.

First, thanks everyone’s help. Thanks your idea and suggestion.

I did “play” a little bit before with Tk ( with Tcl/Tk, and also Perl/Tk )
Well, if I have a lot of space time, I may like to “play” (try) other toolkit.
But I think, it is may-be good that you focus on one “good” toolkit.
Which can help you a lot, in many applications, in many situations.
( I may-be too greed, many situations may-be means :
many platform support, many languages support, free … etc )

(But nothing is 100% perfect, some is esay to use, some is more portable … etc)

It is really scare me now, about “Tk is dead”.
Can you imagine you try learn one toolkit and no support for it in the future ?
Technologie always evolve, we have OpenGL, directX, … etc who knows later.
And you know Tk, but is old Tk, and not more Tk support for new technologie …
Mmmm… is it still a good choice to learn Tk ?
(Unless, you want learn the design of Tk and came out with new your own toolkit,
if not, is it good for the future to learn Tk ?
Mmm… may-be the Tk is stable now, it can resolve almost 90% of case … )

Anyway. I will try continue play Tk and later FOX.

Thx.