Best gui toolkit

you guys should really look at shoes if you want 2D!
I totally agree with you with you that tk is really underestimated,
but it always felt alien to me, because of its syntax roots in TCL which
is
a very weird beast.
On the opposite, shoes totally emerge from the ruby culture, if you like
ruby, you’ll like shoes.

2008/12/2 Joel VanderWerf [email protected]

From: Chad P. [email protected]
Subject: Re: best gui toolkit
Date: Wed, 3 Dec 2008 03:43:05 +0900
Message-ID: [email protected]

Probably even easier to learn and implement: tk

Tk lacks some features you may have come to expect from GTK, however.

Please teach me about the features.
I want to add the features to Ruby/Tk, if I can.

For example, HBox/VBox(?) like widget are included
in a example ‘tkalignbox.rb’ on ‘ext/tk/sample’ directory.

I personaly like wxRuby.
Quite easy, and lots of sample code provided with it, so really easy to
pick up.

Shoes is just fun to code, works really nicely, but I wouldn’t recommand
it for normal GUI application yet, since it doesnt have menu bar for
instance.
But it’s definitely worth trying :slight_smile:

On Dec 2, 2008, at 3:56 PM, Hidetoshi NAGAI wrote:

Please teach me about the features.
I want to add the features to Ruby/Tk, if I can.

reason # 42 that tk is a great toolkit. thanks hidetoshi!

a @ http://codeforpeople.com/

From: Hidetoshi NAGAI [mailto:[email protected]]

Does anyone want Tcl3D (http://www.tcl3d.org/) support on Ruby/Tk ?

NaHi, pls don’t ask… iow, of course! :wink:

kind regards -botp

Agree. Every time I investigate the alternatives, tk is the quickest
path to 2d animations.

Does anyone want Tcl3D (http://www.tcl3d.org/) support on Ruby/Tk ?

that will be fantastic!

saji


Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [email protected]
KOREA

From: Joel VanderWerf [email protected]
Subject: Re: best gui toolkit
Date: Wed, 3 Dec 2008 06:11:03 +0900
Message-ID: [email protected]

I’ve always thought Tk has been vastly underrated. It’s worth it for the
text and canvas widgets alone.

Agree. Every time I investigate the alternatives, tk is the quickest
path to 2d animations.

Does anyone want Tcl3D (http://www.tcl3d.org/) support on Ruby/Tk ?

On Dec 2, 10:21 pm, Louis-Philippe [email protected] wrote:

you guys should really look at shoes if you want 2D!

I agree that shoes it’s a very nice toy, but:

  • what about if I need binding like:
    on on canvas or text widget
  • is there any menu bar now?

I totally agree with you with you that tk is really underestimated,

I agree too! Tk (and Tcl) has Unicode support for long time now, much
before most other script languages

The main default of Ruby with the GUI is the same default TCL has with
OO systems

The TCL argument for not having a standard OO system was that on can
use several of them… but as no one is standard, Tcl is not yet
considered as a OO langage.

Also Ruby has many (more or less easy to install) Gui toolkit
availables.
But if Ruby had (only) one full supported (preinstalled) GUI
Every one could count on any Ruby installation for building a Gui
application!

On Dec 3, 2008, at 3:39 AM, mdiam wrote:

Also Ruby has many (more or less easy to install) Gui toolkit
availables.
But if Ruby had (only) one full supported (preinstalled) GUI
Every one could count on any Ruby installation for building a Gui
application!

This is along the lines of declaring a One True web framework (like
Rails).

Tk and Swing are two multiplateform Gui toolkit.
It would be nice if Tk could be used in the Java world, and
if Swing could (out of the Ruby box) be used from the ©Ruby
world!

Swing can be used out of box from JRuby, and JRuby + Swing apps don’t
require the user to install all of (J)Ruby, but just double click a
jar/exe/app. What’s the harm with JRuby, or are you referring to Ruby
in a general sense?

-Logan

From: Chad P. [email protected]

Probably even easier to learn and implement: tk

Please teach me about the features.
I want to add the features to Ruby/Tk, if I can.

  • make Tk easily available in any standard Ruby distribution:
    e.g. allow to compil Ruby with Tk if the Tcl/Tk sources are in
    the Ruby sources (possibly by prefixing tcl/tk generated lib for
    ruby distribution)

  • make Tk available to Jruby :

Tk and Swing are two multiplateform Gui toolkit.
It would be nice if Tk could be used in the Java world, and
if Swing could (out of the Ruby box) be used from the (C)Ruby
world!

If one of the two previous universal solutions would provide,
it would help to promote the use of Ruby as standard Gui scripting
solution.

For example, HBox/VBox(?) like widget are included
in a example ‘tkalignbox.rb’ on ‘ext/tk/sample’ directory.

– Maurice

On Wed, Dec 03, 2008 at 05:04:41AM +0900, David Palacio wrote:

It’s also kind of onerous in terms of licensing, unless you just really
like the GPL and have absolutely no interest in doing MS Windows
development.
Why no Windows development? There is a gem for it.

http://rubyforge.org/frs/?group_id=181&release_id=23283

My mistake – I hadn’t realized Qt/Windows was available under the GPL
as
of version 4.

Hello Logan,

On Dec 3, 8:18 pm, Logan B. [email protected] wrote:

On Dec 3, 2008, at 3:39 AM, mdiam wrote:

But if Ruby had (only) one full supported (preinstalled) GUI
Every one could count on any Ruby installation for building a Gui
application!

This is along the lines of declaring a One True web framework (like
Rails).

Not exactly the same, I think (but not sure) that it’s easier to
change
from a framework to another than from a (lower library like) a
GUI such Swing to Qt or Gtk.
So a GUI choice seems critical for me.

Also Tcl provide a natural GUI library with it’s Tk tool kit. But
also Python which embed Tk with it!
A Python/Tk script is easiest to distribute than a Ruby/Tk (but not
as sexy to write :wink:

It would be nice if Tk could be used in the Java world, and
if Swing could (out of the Ruby box) be used from the (C)Ruby
world!

Swing can be used out of box from JRuby, and JRuby + Swing apps don’t
require the user to install all of (J)Ruby, but just double click a
jar/exe/app.

Yes, that is the big advantage for JRuby (and the fact that any
java lib can be use
directly with Jruby!)

What’s the harm with JRuby, or are you referring to Ruby
in a general sense?

Some of my Ruby scripts (without gui) run either in (C)Ruby or in
Jruby without
any modifications, which is very nice.
But I have some Ruby/Tk which cannot be rub into Jruby whith big
changes !

Having Tk running onto jruby (either via Swank java lib or via FFI and
native Tk) would allow me to smoothly migrate from (C)ruby to Jruby.
Or having Swing gui easily usable from native CRuby (without jni)
could be very nice too!

– Maurice