Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by jdlev (Scribe)
on Sep 26, 2013 at 20:19 UTC ( [id://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?

Replies are listed 'Best First'.
Re: Create a GUI for my Perl Program? Make Your Program Pretty?
by davido (Cardinal) 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 (Canon) 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 (Priest) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found