Forum: Ruby Ruby GUI recommendations?

Af95bdaf87958c40150b813e94381bfd?d=identicon&s=25 Christer Nilsson (christer)
on 2005-12-12 12:29
Which GUI lib is the best and which is the most widely used ?
(Necessarily not the same :-) )
I'm using Win XP.

I've tried wxRuby so far, but would like to get some overview what's
available before deciding where to put the efforts.

I would prefer a good minimal OO API, with documentation.

Christer
38a8230ed3d5c685558b4f0aad3fc74b?d=identicon&s=25 Joe Van Dyk (Guest)
on 2005-12-12 13:11
(Received via mailing list)
On 12/12/05, Christer Nilsson <janchrister.nilsson@gmail.com> wrote:
> Which GUI lib is the best and which is the most widely used ?
> (Necessarily not the same :-) )
> I'm using Win XP.
>
> I've tried wxRuby so far, but would like to get some overview what's
> available before deciding where to put the efforts.
>
> I would prefer a good minimal OO API, with documentation.

Depending on your needs, a RubyOnRails application packaged up as an
.exe may be your best bet.

That's the way I'd go (if possible).
19f65b7dca6831edf989224b5ebd3fe0?d=identicon&s=25 unknown (Guest)
on 2005-12-12 13:14
(Received via mailing list)
On Monday 12 December 2005 08:29 pm, Christer Nilsson wrote:
> Which GUI lib is the best and which is the most widely used ?
> (Necessarily not the same :-) )
> I'm using Win XP.
>
> I've tried wxRuby so far, but would like to get some overview what's
> available before deciding where to put the efforts.
>
> I would prefer a good minimal OO API, with documentation.
>
> Christer

Here are comparisons between available toolkits.

--ruby-gtk2
The most complete and stable toolkit you'll find with the better ruby
bindings
UTF8 support
API finished
very complete documentation
works on windows, unix, and mac
GUI designer available, Glade2 (link below shows link to glade for
windows)
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install...

--qtruby
works very well, stable API, complete..
unfortunately qtruby/4 is not on windows yet.
UTF8 support
very complete documentation
GUI designer available, qt designer
Native widgets on each platform
no windows install doc

--wxruby2
bindings not complete to ruby, missing classes and methods
works if you want to use just the basic widgets
UTF8 support however
Native widgets on each platform

--fxruby
well.. :( Its a okay toolkit if you use what fxruby stable is
lacks UTF8 support
the API is not stable, things change often. not fxruby's fault, its a
FOX
toolkit development problem.
draws its own widgets
fox doesn't contain all the widgets other toolkits have like gtk

--tk
very complete, comlplete APIs, everything
bindings are included with ruby, but I don't think the curt's ruby
installer
has the tk runtime.


You might want to consider ruby-gtk2, its pretty straight forward and
simple.
qtruby/4 is almost there.

Tsume
9dfe8c734b0f9b37a4e218425c0a2138?d=identicon&s=25 Gene Tani (Guest)
on 2005-12-12 17:09
(Received via mailing list)
tsumeruby@tsumelabs.com wrote:
> > Christer
> http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install...
> --wxruby2
> draws its own widgets
>
> Tsume

this guy likes gtk2 too (in French)
http://www.bawet.org/article.php3?id_article=60
Cd63f8e74588c4c149231d24f1c31256?d=identicon&s=25 Terje Tjervaag (Guest)
on 2005-12-13 10:21
(Received via mailing list)
> tsumeruby@tsumelabs.com wrote:
> > --ruby-gtk2
> > --qtruby
> > --wxruby2
> > --fxruby
> > --tk

What are people's experience with packaging applications made with
these toolkits using Rubyscript2exe?  I've done so with wxruby, so I
know that works, how about the others, is it easy to get the required
files included so the client doesn't have to install the toolkit
before running the application?
A16652fd5d83c0473bd1e39d9a2117a6?d=identicon&s=25 Dirk Meijer (Guest)
on 2005-12-13 17:32
(Received via mailing list)
tk works as well, though i think tk works in a somewhat silly way..



2005/12/13, Terje Tjervaag <flecktone@gmail.com>:
3a0d61d465c296f7f291b5bd09c90a4a?d=identicon&s=25 tony summerfelt (Guest)
on 2005-12-13 20:12
(Received via mailing list)
>>>>--ruby-gtk2

>>What are people's experience with packaging applications made with
>>these toolkits using Rubyscript2exe?

i just spent the last few hours trying this out. the install was
relatively painless. i was suprised at how easy it was to get gui code
up and running.

rubyscript2exe created the exe, but an end user would need gtk
installed. i wasn't able to figure out all the dll's what would  need
to be distributed with an app or even if that's possible...i'm
guessing that's why the gaim installer fires up the gtk installer :)

it would be nice if there was an 'allinone' gtk.dll that you could
distribute with ruby-gtk2 apps...

and debugging with arachnoruby worked as smoothly as i thought it would

i like it enough to stick with it...
4b38034fdb66886a91d55fcd12964cee?d=identicon&s=25 Erik Veenstra (Guest)
on 2005-12-13 22:13
(Received via mailing list)
> rubyscript2exe created the exe, but an end user would need
> gtk installed. i wasn't able to figure out all the dll's what
> would need to be distributed with an app or even if that's
> possible...i'm guessing that's why the gaim installer fires
> up the gtk installer :)

A quick guess of the required DLL's, by analyzing the contents
of ruby-gtk2-0.14.1-1-i386-msvcrt-1.zip:

 $ strings $(find -name '*.so') | grep -wie dll | sort | uniq
 intl.dll
 KERNEL32.dll
 libatk-1.0-0.dll
 libcairo-2.dll
 libgdkglext-win32-1.0-0.dll
 libgdk_pixbuf-2.0-0.dll
 libgdk-win32-2.0-0.dll
 libglade-2.0-0.dll
 libglib-2.0-0.dll
 libgmodule-2.0-0.dll
 libgobject-2.0-0.dll
 libgtkglext-win32-1.0-0.dll
 libgtk-win32-2.0-0.dll
 libpango-1.0-0.dll
 libpangocairo-1.0-0.dll
 MSVCR71.dll
 msvcrt.dll
 msvcrt-ruby18.dll

Skip the (default) Windows DLLS's and you end up with this:

 RUBYSCRIPT2EXE_DLLS = []
 RUBYSCRIPT2EXE_DLLS << "libatk-1.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libcairo-2.dll"
 RUBYSCRIPT2EXE_DLLS << "libgdkglext-win32-1.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgdk_pixbuf-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgdk-win32-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libglade-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libglib-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgmodule-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgobject-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgtkglext-win32-1.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libgtk-win32-2.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libpango-1.0-0.dll"
 RUBYSCRIPT2EXE_DLLS << "libpangocairo-1.0-0.dll"

I can't test it...

gegroet,
Erik V. - http://www.erikveen.dds.nl/
3a0d61d465c296f7f291b5bd09c90a4a?d=identicon&s=25 tony summerfelt (Guest)
on 2005-12-14 00:45
(Received via mailing list)
Erik Veenstra wrote on 12/13/2005 4:12 PM:

> Skip the (default) Windows DLLS's and you end up with this:

and add:  libgtjread-2.0-..dll
          libfontconfig-1.0.dll
          xmlparse.dll
          xmltok.dll
          libfreetype-6.dll
          libpng13.dll
          libpangowin32-1.0-0.dll

and then i get a:

Pango-ERROR **:file ../../../pango/pango/shape.c: line 75
(pango_shape): assertion failed: (glyphs->num_glyphs>0) aborting...

which was when i posted my message :)
4b38034fdb66886a91d55fcd12964cee?d=identicon&s=25 Erik Veenstra (Guest)
on 2005-12-15 21:59
(Received via mailing list)
> Pango-ERROR **:file ../../../pango/pango/shape.c: line 75
> (pango_shape): assertion failed: (glyphs-> num_glyphs> 0)
> aborting...

It obviously needs more than just the DLL's. For TK, I included
a lot more than just the DLL's, and it works. We could do the
same with GTK.

I'll investigate it. I have no experience with Ruby-GTK, so I
might need some help. I'll shout...

gegroet,
Erik V. - http://www.erikveen.dds.nl/
3a0d61d465c296f7f291b5bd09c90a4a?d=identicon&s=25 tony summerfelt (Guest)
on 2005-12-16 14:26
(Received via mailing list)
Erik Veenstra wrote on 12/15/2005 3:57 PM:

> It obviously needs more than just the DLL's. For TK, I included
> a lot more than just the DLL's,

yeah, with tk you'd probably need the package info, etc.

> and it works. We could do the
> same with GTK.

> I'll investigate it. I have no experience with Ruby-GTK, so I
> might need some help. I'll shout...

i've been doing trial and error but no luck so far...
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.