Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Graphical Scripts?

by Anonymous Monk
on Aug 10, 2001 at 08:08 UTC ( [id://103758]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm sick of text screens!!!

I want to make my scripts graphical... Is this possible, and if it is, I would like to know where I can learn about it...

BTW, I'm takling about scripts I launch from the shell...

Thanks in advance for your help!

Replies are listed 'Best First'.
Re: Graphical Scripts?
by nardo (Friar) on Aug 10, 2001 at 08:22 UTC
    Gtk, Tk, and Curses::Widgets will let you create a graphical interface, the later being text based. But if you have no good reason to use them other than being "sick of text screens" your program isn't going to be much more useful and unless you plan on translating the text into heiroglphics (sp?) it's probably going to look pretty much the same. There are plenty of good reasons for using a graphical user interface, but moving the text from a console to a window isn't one of them IMO.
Re: Graphical Scripts?
by TStanley (Canon) on Aug 10, 2001 at 08:23 UTC
    The Tk module is most often used to create graphical user interfaces in perl. Be forewarned that there is a slight learning curve involved at first, but it does get easier to understand after working with it. Also available is the GD.pm module which is also found on CPAN. Jouke wrote a review of that module which can be found here.

    TStanley
    --------
    There's an infinite number of monkeys outside who want to talk to us
    about this script for Hamlet they've worked out
    -- Douglas Adams/Hitchhiker's Guide to the Galaxy
Re: Graphical Scripts?
by Jouke (Curate) on Aug 10, 2001 at 12:40 UTC
    If you are on an X based platform, use Tk, Gtk, or wxPerl. There are more interfaces on CPAN, like Qt and FWTK, but it seems that they are dead.

    Are you on a Win32 platform, you can choose between Tk, wxPerl and Win32::GUI.

    Jouke Visser, Perl 'Adept'
    Using Perl to help the disabled: pVoice and pStory
Re: Graphical Scripts?
by John M. Dlugosz (Monsignor) on Aug 10, 2001 at 08:56 UTC
    nardo listed the most popular choices in the first reply. Of those, Tk is portable to Windows systems.

    I'd also add another, which I used before Tk on Windows was "native" enough: use dynamic HTML. Generating HTML for a user interface is the normal way Web applications work. But I used client-side scripting and DHTML to implement an installer.

    —John

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found