Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl losing momentum ?

by toma (Vicar)
on Jan 31, 2008 at 06:48 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://665295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found