GUI programming for WinXP/Linux/OSX?

sender: "Roman Hausner" date: "Tue, Sep 26, 2006 at 05:11:28PM +0900" <<<EOQ

Thank you for the quick response. I was aware of Tk, but - honestly - I
think Tk is ugly, anachronistic and even a lot worse than current Java
Swing.
[..]

I have not used this, and have no ideea how well Tile plays with Ruby/Tk,
but it certainly is not looking ugly at all:
http://tktable.sourceforge.net/tile/screenshots/windowsxp.html

Hope it helps,
Alex

<snip>

The app I'm building will have a Dia/Visio/XFig/Inkscape-like "drag and drop shapes onto a canvas" GUI, but not a full diagramming package. I've actually considered using one of the open-source diagramming packages as a front end but I haven't found one that's Ruby-scriptable -- Python and Guile/Scheme appear to be the scripting languages of choice for such codes. :frowning: If I go this way I'll have to have the diagramming package export XML or SVG and have the Ruby program execute it.

Google sketchup is a free drawing app that uses Ruby for plugins and general extensions. It is available for OSX and Windows, but not Linux, so may not be of interest to you.

Dave.

···

On 26 Sep 2006, at 15:02, M. Edward (Ed) Borasky wrote:

Hmmm ... has anyone built a "GUI" using ruby-rsvg?

I've little to no experience with wxwidgets -- but I know that it is a
highly regarded cross-platform toolkit.

someone may have already mentioned wxglade...
http://wxglade.sourceforge.net/

there is also widestudio

http://www.widestudio.org/EE/prog-ruby/prog.html

···

On Wed, 2006-09-27 at 00:30 +0900, Une bévue wrote:

Reid Thompson wrote:

> see also http://wxwidgets.org/about/screensh.htm

is that working on Mac OS X, any experiment ???

see also http://wxwidgets.org/about/screensh.htm

is that working on Mac OS X, any experiment ???

Yes. The old (0.6.0) series is based on WxWidgets 2.4.2 and doesn't look completely native. It's actively developed on OS X for ppc and intel.

There is support for OS X-specific idioms, such as the placement of the 'About' menu item, and arrangement of dialog buttons.

ruby-cocoa and interface builder give the optimal range of Apple-specific widgets and layouts, but is obviously not cross-platform.

alex

M. Edward (Ed) Borasky wrote:
...

1. Tk is ugly, but it's a "de facto standard" and does come built-in.

...

The app I'm building will have a Dia/Visio/XFig/Inkscape-like "drag and drop shapes onto a canvas" GUI, but not a full diagramming package. I've actually considered using one of the open-source diagramming packages as

Tk does have a rather nice 2D Canvas widget with various shapes, layers, groups, etc. I'd love to see a similar widget in Fox...

···

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

M. Edward (Ed) Borasky wrote:

Tim Smith wrote:

your project's code, plus three separate GUIs. However, the GUIs should
be pretty simple.

If you make the GUI and the rest of the project communicate using some
kind of RPC over TCP, you even get, for pretty much free, the ability to
have the GUI remote.

Or use Rails and make a browser-based GUI with Ajax.

That is certainly interesting for some applications but I think that
approach is not feasible when you need to do any kind of graphics stuff
like drawing to a canvas, interactive graphics and even more, 3D.

···

--
Posted via http://www.ruby-forum.com/\.

QT is quite nice on the MacOS X (although far from looking native).
GTK does not exist on MacOS X (unless you run it in X11, but that is
like saying the GUI is *NOT* native). A port is being made, but I don't
know how well it works.
wx is a lot worse than QT (on the MacOS X).

···

Thomas Adam <thomas.adam22@gmail.com> wrote:

I suppose I could
suggest GTK to you as well as QT, since I know both those widget sets
will run on Windows (with the proviso that they're installed of course
-- certainly that doesn't ship natively with Windows), although I have
no idea what that's like for the Mac, or even if ports are available
for it. Again, there is also the wxWindows widget set (WxWindows is
the old name for it -- I forget what it has been renamed to).

--
blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi,
site: http://www.akropolix.net/rik0/ | tenetevi riso e
forum: http://www.akropolix.net/forum/ | bacchette per voi.

not too bad :wink:

···

Alexandru E. Ungur <alexandru@globalterrasoft.ro> wrote:

I have not used this, and have no ideea how well Tile plays with Ruby/Tk,
but it certainly is not looking ugly at all:
Tile: Windows XP screenshots

--
une bévue

Yes. The old (0.6.0) series is based on WxWidgets 2.4.2 and doesn't look
completely native. It's actively developed on OS X for ppc and intel.

The old (0.6.0) series of what, i didn't catch it ))

There is support for OS X-specific idioms, such as the placement of the
'About' menu item, and arrangement of dialog buttons.

fine !

it is using C++ ? or could we use also C (works better with ruby) ?

ruby-cocoa and interface builder give the optimal range of Apple-specific
widgets and layouts, but is obviously not cross-platform.

yes a know, i'm using that framwork however i plane an X-platform app in
the near future...

···

Alex Fenton <alex@deleteme.pressure.to> wrote:
--
une bévue

what about FOX on Mac OS X ???

···

Mc Osten <riko@despammed.com> wrote:

QT is quite nice on the MacOS X (although far from looking native).
GTK does not exist on MacOS X (unless you run it in X11, but that is
like saying the GUI is *NOT* native). A port is being made, but I don't
know how well it works.

--
une bévue

Yes. The old (0.6.0) series is based on WxWidgets 2.4.2 and doesn't look
completely native. It's actively developed on OS X for ppc and intel.

The old (0.6.0) series of what, i didn't catch it ))

wxRuby - http://wxruby.rubyforge.org/ - the ruby interface to WxWidgets.

PS - I meant to say that 0.6.0 is NOT being actively developed, but wxruby2 IS under active development on all major platforms.

it is using C++ ? or could we use also C (works better with ruby) ?

It's C++, but the ruby wrapper is generated using SWIG: http://www.swig.org/ to simplify the wrapping - it's a large library.

alex

I never tried it. However, if you give me a short list of FOX
applications, I'll be glad to try them and report my opinions.

···

Une bévue <pere.noel@laponie.com.invalid> wrote:

what about FOX on Mac OS X ???

--
blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi,
site: http://www.akropolix.net/rik0/ | tenetevi riso e
forum: http://www.akropolix.net/forum/ | bacchette per voi.

> QT is quite nice on the MacOS X (although far from looking native).
> GTK does not exist on MacOS X (unless you run it in X11, but that is
> like saying the GUI is *NOT* native). A port is being made, but I don't
> know how well it works.

I may be wrong, but I'm pretty sure FOX uses X11 under OS X. (But I
don't like how FOX looks on Windows or X as it is, so I may be biased)

···

On Tue, Sep 26, 2006 at 08:00:12PM +0900, Une b?vue wrote:

Mc Osten <riko@despammed.com> wrote:
what about FOX on Mac OS X ???
--
une b?vue

fine thanks, everything is done by gem install in a few time ))

minimal/minimal.rb is working )))

···

Alex Fenton <alex@deleteme.pressure.to> wrote:

wxRuby - http://wxruby.rubyforge.org/ - the ruby interface to WxWidgets.

PS - I meant to say that 0.6.0 is NOT being actively developed,
but wxruby2 IS under active development on all major platforms.

> it is using C++ ? or could we use also C (works better with ruby) ?

It's C++, but the ruby wrapper is generated using SWIG:
http://www.swig.org/ to simplify the wrapping - it's a large library.

--
une bévue

i never get more deeper than "hello workd" :wink:

the same for QtRuby and Java-Swing-Ruby (JRuby is toooo slow).

for ui design i'm mostly doing Cocoa (and RubyCocoz) and Java-SwingX
years ago...

for the time being i don't have a need for X-platform however within
weeks or month i'll need that.

···

Mc Osten <riko@despammed.com> wrote:

I never tried it. However, if you give me a short list of FOX
applications, I'll be glad to try them and report my opinions.

--
une bévue

From wikipedia:
Both Qt and wxWidgets have some support for programming natively on Mac
OS and Mac OS X platforms, which FOX currently does not support.

I suppose you are right.

And what about FLTK? And XUL? In fact it may be quite interesting...

···

Logan Capaldo <logancapaldo@gmail.com> wrote:

I may be wrong, but I'm pretty sure FOX uses X11 under OS X. (But I
don't like how FOX looks on Windows or X as it is, so I may be biased)

--
blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi,
site: http://www.akropolix.net/rik0/ | tenetevi riso e
forum: http://www.akropolix.net/forum/ | bacchette per voi.

well, it doesn't need to be your stuff :slight_smile:
I simply don't know any application that uses it (and never looked for
one). So if you were aware of such an application, I would have tried it
gladly.

However, it looks like you do have a mac too, so I suppose if you knew
those applications, you would have tried them by yourself. :slight_smile:

···

Une bévue <pere.noel@laponie.com.invalid> wrote:

i never get more deeper than "hello workd" :wink:

--
blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi,
site: http://www.akropolix.net/rik0/ | tenetevi riso e
forum: http://www.akropolix.net/forum/ | bacchette per voi.

Mc Osten wrote:

···

Logan Capaldo <logancapaldo@gmail.com> wrote:

I may be wrong, but I'm pretty sure FOX uses X11 under OS X. (But I
don't like how FOX looks on Windows or X as it is, so I may be biased)

From wikipedia:

Both Qt and wxWidgets have some support for programming natively on Mac
OS and Mac OS X platforms, which FOX currently does not support.

I suppose you are right.

And what about FLTK? And XUL? In fact it may be quite interesting...

I don't think FLTK has a Ruby binding yet.

right !

the most "live" app i'am using on mac, being not X11 dependant, are
SwingX-java and Swt-java (for X-platform).

i think also they are F-Script-Cocoa app, able to run on other platform
because Objective-C is also available over windows (by using gnustep ?)
and sure over *nix...

···

Mc Osten <riko@despammed.com> wrote:

However, it looks like you do have a mac too, so I suppose if you knew
those applications, you would have tried them by yourself. :slight_smile:

--
une bévue

Just a note about Tk -- it has built-in *bindings* in ruby, not a
built-in toolkit. You still need the Tcl/Tk backend, which must be
installed seperately on windows or *nix or mac. Not to mention that
Tile must be installed seperately (for the tk 1.8 stable branch at
least). Unless I've missed something, the only thing built-in about Tk
is the bindings, not the toolkit itself.

Regards,
Jordan