http://www.perlmonks.org?node_id=1055892

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!