From: pvhp@lns62.lns.cornell.edu (Peter Prymmer)
Newsgroups: comp.lang.perl.tk,comp.lang.perl.announce,comp.answers,news.answers
Subject: comp.lang.perl.tk FAQ
Followup-To: comp.lang.perl.tk
Date: Sat May 31 16:48:37 1997
Approved: news-answers-request@MIT.EDU
Summary: comp.lang.perl.tk Frequently Asked Questions.
Archive-name: perl-faq/ptk-faq
Posting-Frequency: monthly
Last-modified: Date: Sat Jul 26 20:10:55 1997
URL:
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Version: 1.00_08
URL (Hypertext-split):
http://w4.lns.cornell.edu/~pvhp/ptk/ptkTOC.html
URL (Plaintext):
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.txt
Image-supplement:
http://w4.lns.cornell.edu/~pvhp/ptk/ptkIMG.html
ftp-Archive:
ftp://ftp.ccd.bnl.gov/pub/ptk/ptkFAQ.txt
ftp-Archive:
ftp://rtfm.mit.edu/pub/usenet/perl-faq/ptk-faq/
e-mail-Archive: ptkfaq@pubweb.bnl.gov
Perl/Tk FAQ
The Perl/Tk extension to the Perl programming language is copyrighted by its
author Nick Ing-Simmons
<nik@tiuk.ti.com>
whose COPYING file reads as follows:
Copyright (c) 1995-1996 Nick Ing-Simmons. All rights reserved.
This package is free software; you can redistribute it and/or
modify it under the same terms as Perl itself, with the exception
of the files in the pTk sub-directory which have separate terms
derived from those of the orignal Tk4.0 sources and/or Tix.
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.
See pTk/license.terms for details of this Tk license,
and pTk/Tix.license for the Tix license.
This compilation of Frequently Asked Questions & answers (FAQ) is
intended to answer several of the first (and largely more basic) questions
posted to the comp.lang.perl.tk newsgroup
and the ptk mailing list.
This document concerns itself with the Perl/Tk programming language (or, if you
prefer, the Tk extension to Perl). Please be aware that this is not the
Perl FAQ, this is not the
Tcl FAQ, nor is
this the
Tcl/Tk FAQ.
Each of those other documents is a useful source of information for
Perl/Tk programmers but they are completely different from this one.
This is a dynamic document and contributions, clarifications, and
corrections are most welcome!
Please send e-mail to
<pvhp@lns62.lns.cornell.edu>
or to
<pvhp@forte.com>.
With your help this document will get better (-:
perl/Tk FAQ
- What is perl/Tk?
- What is the difference between perl/Tk and Tkperl?
- Do I need Tcl/Tk in order to build Perl/Tk?
- Where is it?
- What/Where is CPAN?
- How do I build it?
- Where is the Documentation?
- How do I write scripts in perl/Tk?
- What widget types are available under perl/Tk?
- How do I get widget X to do Y ?
- How do I get a Button to call a Perl subroutine?
- How do I get a Button to actively change under my mouse pointer?
- How do I arrange the layout of my widgets?
- How do I get a Popup to popup?
- How do I bind keyboard keys?
- How do I add bindings?
- How do I bind the action of a slider (sic) to ... ?
- How do I configure a Scrollbar to scroll multiple widgets?
- How do I display a bitmap?
- How do I display an image?
- What Image types are available?
- Is there any way to have more than one Listbox contain a selection?
- How do I select a range of tags in a Text widget?
- How do I group Radiobuttons together?
- How do I specify fonts?
- How do I get the entry in an Entry?
- How do I hide a password Entry?
- How do I limit an Entry's insertion width?
- How do I obtain Menus that do not tear off?
- How do I get a Canvas to ... ?
- Display a bitmap?
- Erase a display?
- Display an Image?
- What things can be created on a Canvas?
- How do I redraw a line on a Canvas?
- How do I use the Canvas as a geometry manager?
- How do I get a Canvas to output PostScript(c)?
- How do I get a PostScript(c) output of a Canvas w/ widgets?
- How do I get the size of a Canvas? After a re-size?
- How do I bind different actions to different areas of the same Canvas?
- Common Problems.
- What do the ->, => and :: symbols mean?
- What happened to the ampersands &?
- What happened to the quotation marks?
- Must I use "my" on all my variables?
- Is there a way to find out what is in my perl/Tk "PATH"?
- What is the difference between use and require?
- How do I change the cursor/color?
- How do I ring the bell?
- How do I determine the version of perl/Tk that I am running?
- How do I call perl from C?
- How do I call Tcl code from perl/Tk?
- What are some of the primary differences between Tcl/Tk and Perl/Tk?
- How do I install new scripts | modules | extensions?
- How do I write new modules?
- Composite Widgets.
- How do I get a Dialog box?
- Is there a file selector?
- Is there a color editor?
- Is there a round Scale?
- Is there something equivalent to tkerror?
- Are there Tables?
- Programming/development tools.
- Is there a Tcl/Tk to perl/Tk translator?
- Is there something equivalent to
wish
in perl/Tk?
- Is there a debugger specifically for perl/Tk?
- Is there a GUI builder in perl/Tk?
- Processes & Inter-Process Communication under Perl/Tk.
- How does one get Perl/Tk to act on events that are not coming from X?
- Is there a send and do I need xauth?
- How can I do animations using after?
- How do I update widgets while waiting for other processes to complete?
- How do you fork on System V (HP)?
- How do I "clear the screen"?
- Is there a way to have an X application draw inside a perl/Tk window?
- Is there a version for Microsoft Windows(tm)?
- Are there any international font packages for perl/Tk?
- Are there any other ways to create event based interfaces from perl?
- Where can I get more information on graphics (modules|scripts)?
- Are there any major applications written in perl/Tk?
- What is the history of pTk and perl/Tk?
- What can we expect the future to hold?
- How do I obtain the latest version of this FAQ?
- Acknowledgements & maintainer.
Return to table of contents | Next