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: Wed May 15 22:26:55 EDT 1996
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: Wed May 15 22:26:55 EDT 1996
URL: http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Version: 0.03

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://ftp.wpi.edu/perl5/pTk-FAQ
ftp-Archive: ftp://rtfm.mit.edu/pub/usenet/perl-faq/ptk-faq/
e-mail-Archive: ptkfaq@pubweb.bnl.gov
gopher-Archive: 128.84.219.153

Perl/Tk FAQ

ntk->ptk

The Perl/Tk extension to the Perl programming language is copywritten by its author Nick Ing-Simmons <nik@tiuk.ti.com> whose Tk-b11.02/COPYING file reads as follows:
Copyright (c) 1995 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. 

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 mostly more basic) questions posted to the comp.lang.perl.tk newsgroup.

This document concerns itself with the Perl/Tk programming language (or, if you prefer, the Tk extension to Perl). Please beware 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 are useful sources of information for Perl/Tk programmers but 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>. With your help this document will get better (-:

perl/Tk FAQ

  1. What is perl/Tk?
  2. What is the difference between perl/Tk and Tkperl?
  3. Where is it?
  4. What/Where is CPAN?
  5. How do I build it?
  6. Where is the Documentation?
  7. How do I write scripts in perl/Tk?
  8. What widget types are available under perl/Tk?
  9. How do I get widget X to do Y ?
    1. How do I get a Button to call a Perl subroutine?
    2. How do I arrange the layout of my widgets?
    3. How do I get a Popup to popup?
    4. How do I bind keyboard keys?
    5. How do I add bindings?
    6. How do I bind the action of a slider (sic) to ... ?
    7. How do I configure a Scrollbar to scroll multiple widgets?
    8. How do I display a bitmap?
    9. How do I display an image?
    10. What Image types are available?
    11. Is there any way to have more than one Listbox contain a selection?
    12. How do I select a range of tags in a Text widget?
    13. How do I group Radiobuttons together?
    14. How do I specify fonts?
    15. How do I get the entry in an Entry?
    16. How do I hide a password Entry?
    17. How do I obtain Menus that do not tear off?
  10. How do I get a Canvas to ... ?
    1. Display a bitmap?
    2. Erase a display?
    3. Display an Image?
    4. What things can be created on a Canvas?
    5. How do I use the Canvas as a geometry manager?
    6. How do I get a Canvas to output PostScript(c)?
    7. How do I get a PostScript(c) output of a Canvas w/ widgets?
    8. How do I get the size of a Canvas? After a re-size?
    9. How do I bind different actions to different areas of the same Canvas?
  11. Common Problems.
    1. What do the ->, => and :: symbols mean?
    2. What happened to the ampersands &?
    3. What happened to the quotation marks?
    4. Must I use "my" on all my variables?
    5. Is there a way to find out what is in my perl/Tk "PATH"?
    6. What is the difference between use and require?
    7. How do I change the cursor/color?
    8. How do I ring the bell?
    9. How do I determine the version of perl/Tk that I am running?
    10. How do I call perl from C?
    11. How do I call Tcl code from perl/Tk?
  12. What are some of the primary differences between Tcl/Tk and Perl/Tk?
  13. How do I install new scripts | modules | extensions?
  14. How do I write new modules?
  15. Composite Widgets.
    1. How do I get a Dialog box?
    2. Is there a file selector?
    3. Is there a color editor?
    4. Is there a round Scale?
    5. Is there something equivalent to tkerror?
    6. Are there Tables?
  16. Programming/development tools.
    1. Is there a Tcl/Tk to perl/Tk translator?
    2. Is there something equivalent to wish in perl/Tk?
    3. Is there a debugger specifically for perl/Tk?
    4. Is there a GUI builder in perl/Tk?
  17. Processes & Inter-Process Communication under Perl/Tk.
    1. How does one get Perl/Tk to act on events that are not coming from X?
    2. Is there a send and do I need xauth?
    3. How can I do animations using after?
    4. How do I update widgets while waiting for other processes to complete?
    5. How do you fork on System V (HP)?
  18. How do I "clear the screen"?
  19. Are there any international font packages for perl/Tk?
  20. Are there any other ways to create X interfaces from perl?
  21. Where can I get more information on graphics modules?
  22. Are there any major applications written in perl/Tk?
  23. What is the history of pTk and perl/Tk?
  24. What can we expect the future to hold?
  25. How do I obtain the latest version of this FAQ?
  26. Acknowledgements & maintainer.

Return to table of contents | Next