Re: Most portable way of GUI programming?
by dpuu (Chaplain) on Dec 01, 2002 at 23:16 UTC
|
The most portable solution is to minimze the GUI code. Think of the user interface as a set of interacting state machines: and code them as such. Implement tests of this control layer as simple (or not so simple) sequential scripts.
Once the control logic is properly encapsulated, the addition of the actual GUI interface is not a major issue: you can try a number of different ones. I generally recommend against the "common-denominator" approach, because it leads to GUIs that look equally bad on all platforms. --Dave. | [reply] |
Re: Most portable way of GUI programming?
by belg4mit (Prior) on Dec 01, 2002 at 22:29 UTC
|
| [reply] |
Re: Most portable way of GUI programming?
by dree (Monsignor) on Dec 02, 2002 at 00:34 UTC
|
As said here, there are at least 3 multiplatform GUIs:
Perl/Tk, wxPerl, Prima.
wxPerl looks like the windows manager of the O.S., the others have their own look & feel.
Perl/Tk is a mature product, well documented (it has a book and a newsgroup), wxPerl is young but it's growing up (it is strongly OO), and Prima is focused on 2D image processing | [reply] |
Re: Portable GUI Programming
by cjf-II (Monk) on Dec 02, 2002 at 04:34 UTC
|
| [reply] |
Re: Most portable way of GUI programming?
by logan (Curate) on Dec 02, 2002 at 05:26 UTC
|
| [reply] |
|
...areas where custom graphics (some kind of collapsable trees) could be drawn.
A CGI really doesn't solves this problem, does it?
And maybe you don't need to install CPAN modules, but you might have to install a webserver.
| [reply] |
|
You have a point, but it's fairly easy to write a server in Perl. Popfile is a good example. Personally, when it makes sense for the application (No canvases, etc), I prefer the CGI approach.
-Lee
"To be civilized is to deny one's nature."
| [reply] |
Re: Most portable way of GUI programming?
by helgi (Hermit) on Dec 02, 2002 at 10:33 UTC
|
Perl/Tk provides all of the above and is reasonably easy to use.
It works well under Unix and Windows and uses the default window style under each.
It comes standard with the Activeperl distribution, available for Windows, Linux and SOlaris.
--
Regards,
Helgi Briem
helgi AT decode DOT is
| [reply] |
Re: Most portable way of GUI programming?
by alfie (Pilgrim) on Dec 02, 2002 at 13:37 UTC
|
I would suggest you to take a look at the GIMP Toolkit, too. It is available for quite some platforms (any un*x flavour, win32 and beos for a start) and IMHO looks much better than that Tk -- especially it is themeable to make it look like you want it :-)
--
use signature;
signature(" So long\nAlfie");
| [reply] |
|
While Perl works on Windows, and GTK+ works on Windows, getting Perl and GTK+ to work on Windows is quite hard. I was searching for information on it a few days ago and everything I found indicated that no one had gotten it to work yet. Most of the messages I found were more than a year old, though, so things might be better now.
If you want to use GTK+, the best solution might be to suck it in and use C for the GUI and Perl for the backend.
| [reply] |
Re: Most portable way of GUI programming?
by professa (Beadle) on Dec 02, 2002 at 14:08 UTC
|
Thanks, people!
I think I'll have a look at Tk, wx and GTK and choose afterwards which one I use.
All three need installation of "non-standard" modules, so there's no difference here between the 3 approaches. Right now I like the wx the best, but I'll skip thru the documentation of all packages and decide then.
Thanks a lot again! | [reply] |