Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Create a GUI for my Perl Program? Make Your Program Pretty?

by jdlev (Scribe)
on Sep 26, 2013 at 20:19 UTC ( #1055892=perlquestion: print w/ replies, xml ) Need Help??
jdlev has asked for the wisdom of the Perl Monks concerning the following question:

So right now, I am just running my programs through the command prompt. I'd like to beautify my program by giving it a graphic user interface. I have absolutely no idea where to begin looking for something like this? Can someone point me in the right direction? Thanks :)

I love it when a program comes together - jdhannibal

Comment on Create a GUI for my Perl Program? Make Your Program Pretty?
Re: Create a GUI for my Perl Program? Make Your Program Pretty?
by davido (Archbishop) on Sep 26, 2013 at 20:24 UTC

    Tk, Wx...

    Or build an inward-facing web-app front end using something like Mojolicious or Dancer

    ...or if you want to experience 1986 all over again, Curses.


    Dave

Re: Create a GUI for my Perl Program? Make Your Program Pretty?
by tobyink (Abbot) on Sep 26, 2013 at 20:53 UTC

    Prima is one of the easiest GUI toolkits I've used for Perl, though it's a bit of a stretch to call it "pretty".

    Wx is somewhat prettier, though a little harder to get started with.

    I second davido's suggestion of skipping the GUI and going straight for a web-based API.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
Re: Create a GUI for my Perl Program? Make Your Program Pretty?
by wjw (Deacon) on Sep 26, 2013 at 22:23 UTC
    I have played about with Zenity a bit..if your are running some Gnome system it works pretty nicely for simple things and integrates well with Perl via Dialog::UI

    Zenity Manual

    There is some sample code here

    Zenity test

    • ...the majority is always wrong, and always the last to know about it...
    • ..by my will, and by will alone.. I set my mind in motion
Re: Create a GUI for my Perl Program? Make Your Program Pretty?
by mtmcc (Hermit) on Sep 26, 2013 at 22:35 UTC
    This seems to me borderline meditation...

    But in any case, in my view, command line applications are plenty beautiful.

    From time to time however, I need to make my perl scripts accessible to people who are not comfortable with command line applications, and in that case, I use perl/tk

    Perl/Tk is well documented, with good CPAN support, and is easy to adapt to multiple platforms. And is easy to learn, provided you have a basic understanding of OO programming.

    I hope that's of some use!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055892]
Approved by tobyink
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2014-09-30 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (379 votes), past polls