Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Tk....What exactly IS it?

by tachyon (Chancellor)
on Sep 02, 2004 at 00:09 UTC ( #387752=note: print w/replies, xml ) Need Help??

in reply to Tk....What exactly IS it?

Tk the Perl module is an interface written by Nick Ing-Simmons to Tcl/Tk. Tcl/Tk is actually two products originally developed at the University of California Berkeley, now at Sun by John Ousterhout: the Tool Command Language and the Tool Kit. They are a versatile scripting language and a graphical interface development tool, respectively.

In brief Tk lets you build GUIs. If you build a Tk GUI with Perl it should run on just about anything Perl (and Perl Tk) runs on. By way of simple example it will almost certainly run on Win32 or Linux.



Replies are listed 'Best First'.
Re^2: Tk....What exactly IS it?
by Spidy (Chaplain) on Sep 02, 2004 at 01:34 UTC
    So is Tk useful for anything (I know it's useful for some things), or just that? And would it be worth it to spend money for a book on?

      PEBKAC. Tk does GUI widget stuff as noted above. If you need to do GUI widget stuff Tk is useful. Tcl (Tool control language) is a scripting language like Perl and is not Tk. Tcl can do lots of different stuff like Perl, but Tk just does widgets. The history of Tcl and Tk



      I picked up the O'Reilly book "Learning Perl/Tk" out of a book bin at a local book store. It cost me all of $7.00. While I haven't actually used a GUI on any of my Perl projects, I've enjoyed going through the book and learning about Perl/Tk. I usually pull it out when I'm feeling like I need a change in perspective. It's just different enough from what I'm usually working on that it provides me with some amusement.

      While I wouldn't recommend spending big bucks on a book about a technique you may never need, if you can pick up something inexpensive, it's worth the investment. For myself, if in the future I find I need a GUI for something, I'll be partly prepared to tackle that.

        Be careful with that book. If you got the one authored solely by Walsh, I've heard it's full of problems. You want to get the one authored by ( I believe ) Liddie and Walsh. But really the best way to go is to try to pick up a copy of the Perl CD Bookshelf with the Perl/Tk book on it. Much easier to carry around. Plus you get 6 other Perl books on a CD ROM. :)

        Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-08-07 16:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found