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.
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
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!
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).
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?
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 :
either by using ffi (if i did well understood the ffi’s
feature
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.
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.
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
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!