Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Perl losing momentum ?

by toma (Vicar)
on Jan 31, 2008 at 06:48 UTC ( #665295=note: print w/replies, xml ) Need Help??

in reply to Perl losing momentum ?

There are slides from an OSCON 2007 presentation about WxPerl GUI development (offsite link).

Cross-platform GUI development is hard.

You could also look at SDL. I have seen some very nice SDL code demos at my local Perlmongers meetings. I believe the SDL code takes advantage of the OpenGL pipeline.

Making a decent-looking GUI is also a lot of work, at least when I've tried to do it. I've stopped blaming the tools! The best thing to do is to try to make a good-looking GUI on any platform, just to see what you are up against. I did this myself by coding Tetris in C++ using SDL on Linux.

Maybe there is a hackish way to create good looks. Something like this - If you knew how to draw a really nice screenshot of your program with any tool, you could carve up your screenshot into Tk::Pixmap images that you put on buttons.

But that's not what I do. I build a little web server into my perl app, use POE::Wheel::Run to launch independent processes, and build my UI out of web pages. I take it easy and let the browser do most of the art. This also has the advantage that the user can change the fonts, window size, search the text, etc. And if someone wants to localize it, they can edit my HTML::Template files.

It should work perfectly the first time! - toma

Replies are listed 'Best First'.
Re^2: Perl losing momentum ?
by Anonymous Monk on Jan 31, 2008 at 17:50 UTC
    Toma, Your approach of using POE::Wheel::Run and using webpages to build the UI sounds interesting. Do you have a small complete example that you could point to ? Thanks - Terence
      No, I don't have a simple example now, but if I ever create one I'll link the writeup on my perl page (offsite link).

      It should work perfectly the first time! - toma

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://665295]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-02-23 21:27 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (351 votes). Check out past polls.