FXRuby or wxRuby?

B

baalbek

I know wxWindows for C++ rather well, and have started to use wxRuby.

But after learning about FXRuby, it is apparent to me that there is more
activity going on with FXRuby (now at version 1.2.x. wxRuby seems parked
at version 0.6, last updated at nov-2002).

I don't know FOX/FXRuby at all, but would like to hear someone's opinion
of the good/bad/ugly of those two toolkits.

It seems to me that FXRuby is the way to go.

Regards,
Baalbek
 
C

Curt Hibbs

baalbek said:
I know wxWindows for C++ rather well, and have started to use wxRuby.

But after learning about FXRuby, it is apparent to me that there is more
activity going on with FXRuby (now at version 1.2.x. wxRuby seems parked
at version 0.6, last updated at nov-2002).

Actually, there is a *lot* of wxRuby activity going on. But you wouldn't
know it if you're not subscribed to the wxRuby mailing list. The 0.6
version that you see has been totally rewritten using SWIG resulting in
a must more robust wrapping of wxWidgets.

I'm not sure when the next release will be, but rapid progress is being
made. I'd suggest subscribing to the wxRuby ML since you are already
familiar wxWidgets.

I don't know FOX/FXRuby at all, but would like to hear someone's opinion
of the good/bad/ugly of those two toolkits.

It seems to me that FXRuby is the way to go.

FXRuby is a good choice if you want a synthesized widget set that looks
the same on all platforms. If you want native widgets, then wxRuby is
the way to go.

Curt
 
D

david

Cit=E1t baalbek said:
But after learning about FXRuby, it is apparent to me that there is mor= e=20
activity going on with FXRuby (now at version 1.2.x. wxRuby seems parke= d=20
at version 0.6, last updated at nov-2002).

I actually find even the 0.6 version very usable, most of the GUI classes=
are
there. Although I'd personally like a rebuild of the Windows version with
wxWidgets 2.6.0, but that's just a pet peeve for being on the bleeding ed=
ge
accompanied by a reluctance to compile extensions on a Windows box.
I don't know FOX/FXRuby at all, but would like to hear someone's opinio= n=20
of the good/bad/ugly of those two toolkits.

The "ugly" says is all. FOX looks very foreign to me on Windows, doesn't =
seem to
even try to look like the XP widgets do. I stopped playing with FreeRIDE
because of the file dialog used, which doesn't remember the last location
visited, for example.

It all depends on whether you want to play around with the GUIs, or plan =
to
actually deploy a graphical Ruby application. For the former case, I gues=
s
anything goes, for the latter, the end users might feel weird with a non-=
native
GUI.

David Vallner
 
G

gabriele renzi

(e-mail address removed) ha scritto:

The "ugly" says is all. FOX looks very foreign to me on Windows, doesn't seem to
even try to look like the XP widgets do. I stopped playing with FreeRIDE
because of the file dialog used, which doesn't remember the last location
visited, for example.

Maybe this can interest you: if you look at mondrian IDE, which should
be now free/open sourced, you may notice it uses a native file selector
on win32 even if it is using FOX, thanks to win32.rb.

It is extremely simple to take the file selection class and import it in
freeride, since it basically just overrides FXFileDialog (IIRC).
I did it for my own use in the past, but I never contributed it to FR
since I'm not sure about the legal issues.
 
O

olof sivertsson

My experience with wxRuby has not been very pleasent. The main
obstacle was bad docs, even the docs at wx's main site are confusing.
The wx API interface seems rather bloated in general and this
translates over to wxRuby. We also had problems getting the sizers to
work as we wanted, and things working on windows and not working on
Linux etc. The final nail in the coffin was when we hit the (known)
bugs and had to code around them.

So we switched to ruby-gtk2 and use glade to draw our GUI's and
connect signals to events. The API is wonderful, everything works as
expected. Good docs. We redid our entire GUI (ok, it's a small app) in
just 10 hours. Linux is the main platform for it, although it might be
possible to run in win as well with some work.
http://ruby-gnome2.sourceforge.jp/

QtRuby also seems to have a nice API, but I haven't gotten it to work.
http://developer.kde.org/language-bindings/ruby/

Never tried FXRuby, mainly because it looks just plain ugly. (But
looking plain ugly on all platforms is better than wx that works on
some platforms and not others...)

Cheers,
Olof
 
R

Randy Kramer

Actually, there is a *lot* of wxRuby activity going on. But you wouldn't
know it if you're not subscribed to the wxRuby mailing list. The 0.6
version that you see has been totally rewritten using SWIG resulting in
a must more robust wrapping of wxWidgets.

1. So, where is the wxRuby mail list?

2. My needs include a full featured text editor (my first preference is that
it have all the functionality of nedit), and to start with, an HTML
"renderer"--eventually I'd want to replace that with something more like a
real browser. Does wxWidgets have anything like those?

regards,
Randy Kramer
 
C

Curt Hibbs

Randy said:
1. So, where is the wxRuby mail list?

The wxRuby mailing list is here:

http://rubyforge.org/mail/?group_id=35

And the wxRuby home page is here:

http://wxruby.rubyforge.org/

2. My needs include a full featured text editor (my first preference is that
it have all the functionality of nedit), and to start with, an HTML
"renderer"--eventually I'd want to replace that with something more like a
real browser. Does wxWidgets have anything like those?

There is an HTML widget, don't know about the text editor.

Your best bet would be to ask these questions on the wxRuby ML, I'm not
closely involved any more.

Curt
 
R

Randy Kramer

On Monday 08 August 2005 12:02 pm, Curt Hibbs wrote:
---<good stuff snipped>---

Curt,

Thanks!

Randy Kramer
 
G

Gerardo Santana Gómez Garrido

I know wxWindows for C++ rather well, and have started to use wxRuby.
=20
But after learning about FXRuby, it is apparent to me that there is more
activity going on with FXRuby (now at version 1.2.x. wxRuby seems parked
at version 0.6, last updated at nov-2002).
=20
I don't know FOX/FXRuby at all, but would like to hear someone's opinion
of the good/bad/ugly of those two toolkits.
=20
It seems to me that FXRuby is the way to go.
=20
Regards,
Baalbek
=20
=20

Have you considered QtRuby?

Here's a 'hello world':
http://developer.kde.org/language-bindings/ruby/index.html

And it's already working with Qt4:
http://www.kdedevelopers.org/node/1123

Ruby and Qt seems like a perfect match since both are thought OO from
scratch. And you keep your application multiplatform, with a native
looking GUI.

--=20
Gerardo Santana G=F3mez Garrido
http://www.openbsd.org.mx/santana/
"Entre los individuos, como entre las naciones, el respeto al derecho
ajeno es la paz" -Don Benito Ju=E1rez
 
L

Lothar Scholz

Hello david,

dvn> The "ugly" says is all. FOX looks very foreign to me on Windows, doesn't seem to
dvn> even try to look like the XP widgets do. I stopped playing with FreeRIDE
dvn> because of the file dialog used, which doesn't remember the last location
dvn> visited, for example.

No toolkit does this as it is the task of the GUI application itself,
otherwise different open dialogs would show the same directory. So you
must blame FreeRIDE here.

FOX 2.0 will have theming. There is a patched FOX version out there
(search the mailing list) which already uses the windows theming API and
looks as native as you want it. Unfortunately you can't link this
together with FXRuby.

dvn> It all depends on whether you want to play around with the GUIs, or plan to
dvn> actually deploy a graphical Ruby application. For the former case, I guess
dvn> anything goes, for the latter, the end users might feel weird with a non-native
dvn> GUI.

Right. But if the target audience are also technical people the different
FOX look is not so important. In times of skins, web applications and
dozens different GUI themes, the consistence look is not so important
anymore.
 
L

Lothar Scholz

Hello baalbek,

b> I know wxWindows for C++ rather well, and have started to use wxRuby.

b> But after learning about FXRuby, it is apparent to me that there is more
b> activity going on with FXRuby (now at version 1.2.x. wxRuby seems parked
b> at version 0.6, last updated at nov-2002).

Looked at wxRuby yesterday and the last huge checkin was 30 hours ago.
Active but maybe a little bit to active if you want a stable system.
I wouldn't even sure if they now have an API that they want to keep
stable.

b> I don't know FOX/FXRuby at all, but would like to hear someone's opinion
b> of the good/bad/ugly of those two toolkits.

One of the best things is that FOX is that it is without doubt the winner
when it comes to speed problems. Populate the FXTreeList with 10000
items in less then a second ? No problem for FOX. Odr do you want to
put up a complex form dialog in 100 ms - don't try this with QT oder GTK.

And if you ever need to do something special, so you have to modify
the C++ source then you will see that FOX is miles ahead to GTK or
QT's internal architecture.

b> It seems to me that FXRuby is the way to go.

The major problem are no unicode, restricted widget set (no styled
text widget - but scintilla works as third party, no HTML widget), a
really bad implementation of menus and no theming.
 
S

Stefan Lang

dvn> The "ugly" says is all. FOX looks very foreign to me on
Windows, doesn't seem to dvn> even try to look like the XP widgets
do. I stopped playing with FreeRIDE dvn> because of the file dialog
used, which doesn't remember the last location dvn> visited, for
example.

No toolkit does this as it is the task of the GUI application
itself, otherwise different open dialogs would show the same
directory. So you must blame FreeRIDE here.

NET/System.Windows.Forms {Open,Save}FileDialog does.
Perhaps it's based on assembly signature or assembly name
and version.
 
S

Stephan Mueller

* Gerardo Santana Gómez Garrido said:
Have you considered QtRuby?

Does it work with the windows version of Qt4 as well? I was wondering if
this is just a KDE-only project or a really multiplatform qt wrapper.


Steph.
 
G

Gerardo Santana Gómez Garrido

Korundum is the KDE specific binding. QtRuby is about Qt only.

You can see more information and examples here:
http://developer.kde.org/language-bindings/ruby/index.html

From that same page, a translation to QtRuby of Qt Tutorial #1
http://developer.kde.org/language-bindings/ruby/tutorial/tutorial.html

There is even a QtRuby shell where you can create widgets
interactively from the command line.

Hello world in QtRuby:

#!/usr/bin/ruby

require 'Qt'
a =3D Qt::Application.new(ARGV)
hello =3D Qt::pushButton.new("Hello World!", nil)
hello.resize(100, 30)
a.mainWidget =3D hello
hello.show()
a.exec()

For KDE applications you change require 'Qt' for require 'Korundum'

* Gerardo Santana G=F3mez Garrido <[email protected]> [050808 19:= 15]:
=20
Have you considered QtRuby?
=20
Does it work with the windows version of Qt4 as well? I was wondering if
this is just a KDE-only project or a really multiplatform qt wrapper.
=20
=20
Steph.
=20
=20
=20


--=20
Gerardo Santana G=F3mez Garrido
http://www.openbsd.org.mx/santana/
"Entre los individuos, como entre las naciones, el respeto al derecho
ajeno es la paz" -Don Benito Ju=E1rez
 
C

Curt Hibbs

I'm posting this on behalf of Kevin Smith who is leading the current
surge of wxRuby development.
----------------------------------

olof said:
My experience with wxRuby has not been very pleasent.

I am very sorry to hear that. wxRuby is still definitely a beta-quality
product. Until recently, only a few people have contributed much code to
the project, so it has evolved rather slowly. There seems to be some
good momentum now, with several people submitting code patches, so
hopefully this will change.
The main obstacle was bad docs,

Understandable. We have been focused on getting the basic code working
as a first step. I would rate the documentation as about average for a
FLOSS project. Definitely better than many, but still rough.
even the docs at wx's main site are confusing.

I think there is a lack of good examples and tutorials, but otherwise I
have found the wx docs to be pretty complete. I would be interested to
know which parts are confusing.
The wx API interface seems rather bloated in general and this
translates over to wxRuby.

True. Solving this will be our next phase, after we get a basic wrapper
working. That's the approach that FXRuby took as well, since the FOX API
was a bit heavy.

Once we have wxRuby working, we can add lots of Ruby sugar on top to
make the API much more pleasant. The wx API is definitely not the
cleanest of the GUI toolkits. That's partly due to its maturity (10+
years), and partly due to its use of native widgets where possible.
We also had problems getting the sizers to work as we wanted,

Sizers can be a challenge. Perhaps that's the part of the wx docs that
you found confusing, and I would probably agree. The sizer API is a bit
odd, and some of the docs still describe the deprecated mechanism that
was replaced by sizers. It will be interesting to see if we can cook up
some really cool ruby-ish API improvements for sizers. At a minimum, we
can create several good examples.
and things working on windows and not working on Linux etc.

There are a few features that are only available on specific platforms
due to native-widget issues. Not many, though. Generally, wx itself
works very well across multiple platforms. wxRuby probably has more
issues at this point, but we plan to fix them.
The final nail in the coffin was when we hit the (known)
bugs and had to code around them.

Yup. I sure wish wxRuby could have made faster progress.
So we switched to ruby-gtk2

That's a fine toolkit, and I'm glad it is working for you. It isn't
really fully cross-platform, so it's not directly comparable.
QtRuby also seems to have a nice API, but I haven't gotten it to work.
http://developer.kde.org/language-bindings/ruby/

I haven't tried QtRuby, but also has different strengths and weaknesses
compared to wxRuby. Qt has much more restrictive licensing for example.
Never tried FXRuby, mainly because it looks just plain ugly. (But
looking plain ugly on all platforms is better than wx that works on
some platforms and not others...)

FXRuby is a great toolkit, and probably the one I would recommend to
anyone who needs a full-featured cross-platform GUI toolkit today. The
main reason I choose to work on wxRuby instead is because FOX doesn't
use native widgets.

And of course there are still other toolkits that weren't mentioned
here. Each has some advantages and disadvantages.

Kevin
 
B

baalbek

Curt said:
Actually, there is a *lot* of wxRuby activity going on. But you wouldn't
know it if you're not subscribed to the wxRuby mailing list. The 0.6
version that you see has been totally rewritten using SWIG resulting in
a must more robust wrapping of wxWidgets.

I'm glad to hear this!

I like wxRuby, and in spite the somewhat lacking documentation for
wxRuby, one can get by with the docs for wxWindows, which are quite good.

Baalbek
 
B

baalbek

Lothar said:
One of the best things is that FOX is that it is without doubt the winner
when it comes to speed problems. Populate the FXTreeList with 10000
items in less then a second ? No problem for FOX. Odr do you want to
put up a complex form dialog in 100 ms - don't try this with QT oder GTK.

This is definitely a plus!
The major problem are no unicode, restricted widget set (no styled
text widget - but scintilla works as third party, no HTML widget), a
really bad implementation of menus and no theming.

Well, visually pleasing applications do tend to be favoured amongst the
'commoners' , even if they are slower.

That said, I have read some complaints about the supposed slow speed of
wxRuby, but so far I'm very satisfied with the speed of the wxRuby
application I'm working on now (it is at least 'fast enough').

Baalbek
 
N

Neil Hodgson

Lothar Scholz:
dvn> because of the file dialog used, which doesn't remember the last location
dvn> visited, for example.

No toolkit does this as it is the task of the GUI application itself,
otherwise different open dialogs would show the same directory. So you
must blame FreeRIDE here.

Windows (2000/XP) remembers the directory on behalf of the
application when using the standard file open and save dialogs. This is
stored in the registry keyed on the application name in
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU

Neil
 
C

Curt Hibbs

Neil said:
Lothar Scholz:



Windows (2000/XP) remembers the directory on behalf of the
application when using the standard file open and save dialogs. This is
stored in the registry keyed on the application name in
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU

But FreeRIDE uses FXRuby/Fox, and Fox does not use the Windows standard
dialog. Therefore FreeRIDE would have to do this itself.

Curt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top