Home > Archive > PERL Miscellaneous > June 2005 > GUI libraries for Perl (was Re: Convert perl/ cgi web app to standalone perl app)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
GUI libraries for Perl (was Re: Convert perl/ cgi web app to standalone perl app)
|
|
| John Bokma 2005-06-08, 3:59 pm |
| Christopher Nehren wrote:
> On 2005-06-08, John Bokma scribbled these
> curious markings:
>
> [This is really becoming off-topic for this group,
Nope, it's about GUI libraries for Perl, which I consider on-topic :-D
> WxWidgets uses the GTK+ widget set on Unix systems to do the actual
> rendering, but that's where the similarities end.
Yes, and Windows API for Windows :-) But it looks almost as ugly as Tk
(on Windows).
> I've found GTK+ to be
> a much simpler, more intuitive interface to GUI development than
> WxPerl. For example, you aren't *absolutely positively required* to
> subclass from anything to write Perl/GTK+ applications. It's OO, in a
> language that supports OO (which is more than can be said for plain
> C/GTK+), but not the sort that forces one particular programming style
> on you[1].
For Wx I found the documentation hard, incomplete, etc. I had to guess a
lot, and experiment a lot, two things that I don't consider part of
programming. I had no problem with *you have to subclass*, but I can
imagine that the forcing can be annoying for small things. (I don't like
force either, life will find a way :-D ).
> Perl/GTK+ allows you to follow normal Perl practises: make a window
> object, add some widgets to it, optionally add signal handlers, show
> it, enter the main event loop. You don't need to derive from a class
> to do anything, but you can if you want (and it's necessary if you
> want to extend a widget's behaviour). For a simple, working example,
> read the very top of Gtk2.pm's POD in the Gtk2 module.
But how good is the documentation? With Wx, there are plenty of
extremely simple examples, but I had a hard time to do real work based
on the samples.
Thanks,
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
| |
| Christopher Nehren 2005-06-08, 3:59 pm |
| On 2005-06-08, John Bokma scribbled these
curious markings:
> But how good is the documentation? With Wx, there are plenty of
> extremely simple examples, but I had a hard time to do real work based
> on the samples.
The API references are automatically generated, at least when last I
checked. The C API documentation helps a lot, and is excellent.
I personally believe that the best way for one to evaluate a package is
to try it. You can download the Gtk2 module from CPAN or SourceForge.
Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
| |
| John Bokma 2005-06-08, 3:59 pm |
| Christopher Nehren wrote:
> On 2005-06-08, John Bokma scribbled these
> curious markings:
>
> The API references are automatically generated, at least when last I
> checked. The C API documentation helps a lot, and is excellent.
>
> I personally believe that the best way for one to evaluate a package is
> to try it.
I agree, but since I already have some understanding of Wx I was wondering
if it's worth to evaluate Gtk. It has been on my todo list for months, so
any excuse to speed up evaluation is ok :-D. On the other hand, if several
people say it's not worth it, I leave it on the list.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
|
|
|
|
|