Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $39.99
Standard view
Full view
of .
Look up keyword or section
Like this
8Activity

Table Of Contents

Getting Started with Perl/Tk
Hello World Example
Unsolicited Advice
Debugging and Prototyping Perl/Tk Programs
Chapter 2
CHAPTER 2
Geometry Management
The pack Geometry Manager
The form Geometry Manager
Geometry Management Summary
Chapter 3
CHAPTER 3
Fonts
Experimenting with Fonts
Dissecting a Font
Using Fonts
Using Fonts Dynamically
Font Manipulation Methods
Chapter 4
CHAPTER 4
Button, Checkbutton, and Radiobutton Widgets
Creating Button Widgets
Standard Options for Each Button Type
Table of Options for Button-Type Widgets
Displaying Text on Buttons
Displaying an Image or Bitmap
Checkbutton and Radiobutton Indicator Status
On and Off Values for a Checkbutton
Radiobutton Values
The -command Option
Disabling a Button
Text Manipulation
Altering the Button’s Style
Changing the Size of a Button
Adding a Keyboard Mapping
Color Options
Indicator Colors
Hiding the Indicator
Focus Options
Altering the Highlight Rectangle
Flashing the Button
Invoking the Button
Turning a Checkbutton/Radiobutton On and Off
Chapter 5
CHAPTER 5
Label and Entry Widgets
The Label Widget
The Entry Widget
The Perl/Tk LabEntry Mega-Widget
Chapter 6
CHAPTER 6
The Scrollbar Widget
Defining Scrollbar Parts
The Scrolled Method
Examples
Chapter 70
CHAPTER 7
The Listbox Widget
Creating and Filling a Listbox
Listbox Options
Selection Modes
Colors
Listbox Style
Inserting Items
Deleting Items
Retrieving Elements
Selection Methods
selection method
Moving to a Specific Index
Translating Indexes
Counting Items
Active Versus Selected
Bounding Box
Finding an Index by y Coordinate
Scrolling Methods
Listbox Virtual Events
Listbox Example
Chapter 8
CHAPTER 8
The Text, TextUndo, and ROText Widgets
Creating and Using a Text Widget
Text Widget Options
A Short Break for a Simple Example
Text Indexes
Text Tags
Inserting Text
Deleting Text
Retrieving Text
Translating Index Values
Comparing Index Values
Showing an Index
Getting the Size of a Character
Getting Line Information
Searching the Contents of a Text Widget
Scrolling
Marks
Search Options
Embedding Widgets
Internal Debug Flag
The Perl/Tk Text Widget Extended Methods
The TextUndo Widget
TextUndo Virtual Events
The ROText Widget
The Canvas Widget
Creating a Canvas
The Canvas Coordinate System
The Scrollable Region
Using bind with a Canvas
Canvas Options
Creating Items in a Canvas
Toplevel Methods
Creating Multiple MainWindows
Putting Two MainWindows to Work
Chapter 12
CHAPTER 12
The Menu System
Menu System Components
Menubars and Pulldown Menus
Menubars the Clunky, Casual, Old-Fashioned Way
The Win32 System Menu Item
Classical Menubars
Popup Menus
Option Menus
Menu Virtual Events
Pie Menus
Chapter 13
CHAPTER 13
Miscellaneous Perl/Tk Methods
Managing Widgets with configure and cget
Building a Family Tree
The Widget’s class
Widget’s ID
Color-Related Methods
The Application’s Name
Widget Existence
Is the Widget Mapped?
Converting Screen Distances
Size of Widget
Widget Position
Screen Information
Atom Methods
Ringing a Bell
Clipboard and Selection Methods
Destroying a Widget
Focus Methods
Derived Mega-Widgets
Packaging a Mega-Widget for Public Distribution
Chapter 15m
CHAPTER 15
Anatomy of the MainLoop
Creating a Callback
Binding to Events
The bindtags Command
Executing Nonblocking System Commands
Tracing Perl/Tk Variables
Nonblocking Wait Activities
Splash Screens
Synthesizing Virtual Events
Coexisting with Other GUI Main Loops
Chapter 16
CHAPTER 16
User Customization
Using the Command Line
Synchronizing Window Messages
Using the Option Database
Chapter 17
CHAPTER 17
Images and Animations
An Overview of Perl/Tk Image Types
Methods Common to All Image Types
Bitmap Primitives
The Bitmap Image Type
The Pixmap Image Type
The Photo Image Type
The Compound Image Type
Tk::Animation
tkneko—Animating the Neko on a Canvas
Tile and Transparent Images
Miscellaneous Image Methods
Simple Photo Rotations
Chapter 18
CHAPTER 18
A Tk Interface Extension Tour
Display Items
Item Styles
The TList Widget
The HList Family of Widgets
Tix Images
Chapter 19
CHAPTER 19
Interprocess Communication with Pipes and Sockets
Handling Unsolicited Media Changes
IPADM Design Considerations
The Perl/Tk IPADM Client, ipadm
The Subnet Widget Edits a Subnet Description
The IPADM Helper, ipadmh
The IPADM Daemon, ipadmd
Locking an SDB File
Polling Win32 Sockets
Chapter 20
CHAPTER 20
IPC with send
Security and Inter-Language Considerations
Computingπ with Parallel Message Passing
The Message Passing Protocol
TclRobots
Chapter 21
CHAPTER 21
C Widget Internals
The Tk::Square Widget
Interfacing tkSquare.c with Perl/Tk
Building and Testing Tk::Square
How Not to Port Tk::Square
Chapter 22
CHAPTER 22
Perl/Tk and the Web
Library for WWW Access in Perl
The PerlPlus Browser Plug-in
Chapter 23
CHAPTER 23
Plethora of pTk Potpourri
• Perl/Tk special variables and exporter symbols
pTk Special Variables and Exporter Symbols
Manipulating the Cursor
Dialog Boxes
The Adjuster Widget
The Balloon Widget
The BrowseEntry Widget
The LabFrame Widget
The NoteBook Widget
The ProgressBar Widget
Widgets Not in the Perl/Tk Distribution
APPENDIX A
Installing Perl/Tk
APPENDIX B
Options and Default Values for Each Widget
Appendix C
APPENDIX C
Complete Program Listings
Index
P. 1
Mastering Perl/Tk: Graphical User Interfaces in Perl

Mastering Perl/Tk: Graphical User Interfaces in Perl

Ratings:

3.54

(12)
|Views: 2,814|Likes:

Perl/Tk is the marriage of the Tk graphical toolkit with Perl, the powerful programming language used primarily for system administration, web programming, and database manipulation. With Perl/Tk, you can build Perl programs with an attractive, intuitive GUI interface with all the power of Perl behind it.Mastering Perl/Tk is the "bible" of Perl/Tk: It's not only a great book for getting started, but the best reference for learning the techniques of experienced Perl/Tk programmers. The first half of the book contains the basics on how to use Perl/Tk, and then branches out into advanced applications with a series of extensive program examples. The result is a book accessible for novices, and invaluable for experienced programmers ready to learn the next step in the elegant and effective use of Perl/Tk. The book includes:

An introduction to each of the basic Perl/Tk widgets and geometry managers A dissection of the MainLoop, including how to use callbacks and bindings effectively Coverage of the Tix widgets, an extended set of widgets that are a part of the standard Perl/Tk distribution Working with images in Perl/Tk, including bitmaps, pixmaps, photos, and how to compose a compound image type How to create custom mega-widgets in Perl/Tk, both composite and derived Handling interprocess communication with Perl/Tk, both with standard Unix utilities (pipes and sockets) and with the send command designed for direct communication between Tk applications Developing your own Tk widget in the C language Examples of web applications written with Perl/Tk and the LWP library The book also includes appendices on installing Perl/Tk, a complete quick-reference for each standard widget, and listings of all the extended examples in the book.Nancy Walsh is the author of Learning Perl/Tk, and Steve Lidie wrote the Perl/Tk Pocket Reference as well as a series of Perl/Tk articles in The Perl Journal. Together, they have written Mastering Perl/Tk to be the definitive guide to Perl/Tk.

Perl/Tk is the marriage of the Tk graphical toolkit with Perl, the powerful programming language used primarily for system administration, web programming, and database manipulation. With Perl/Tk, you can build Perl programs with an attractive, intuitive GUI interface with all the power of Perl behind it.Mastering Perl/Tk is the "bible" of Perl/Tk: It's not only a great book for getting started, but the best reference for learning the techniques of experienced Perl/Tk programmers. The first half of the book contains the basics on how to use Perl/Tk, and then branches out into advanced applications with a series of extensive program examples. The result is a book accessible for novices, and invaluable for experienced programmers ready to learn the next step in the elegant and effective use of Perl/Tk. The book includes:

An introduction to each of the basic Perl/Tk widgets and geometry managers A dissection of the MainLoop, including how to use callbacks and bindings effectively Coverage of the Tix widgets, an extended set of widgets that are a part of the standard Perl/Tk distribution Working with images in Perl/Tk, including bitmaps, pixmaps, photos, and how to compose a compound image type How to create custom mega-widgets in Perl/Tk, both composite and derived Handling interprocess communication with Perl/Tk, both with standard Unix utilities (pipes and sockets) and with the send command designed for direct communication between Tk applications Developing your own Tk widget in the C language Examples of web applications written with Perl/Tk and the LWP library The book also includes appendices on installing Perl/Tk, a complete quick-reference for each standard widget, and listings of all the extended examples in the book.Nancy Walsh is the author of Learning Perl/Tk, and Steve Lidie wrote the Perl/Tk Pocket Reference as well as a series of Perl/Tk articles in The Perl Journal. Together, they have written Mastering Perl/Tk to be the definitive guide to Perl/Tk.

More info:

Publish date: Jan 25, 2002
Added to Scribd: May 16, 2009
Copyright:Traditional Copyright: All rights reservedISBN:9780596520359
List Price: $39.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
This book can be read on up to 6 mobile devices.
See more
See less

02/10/2015

770

9780596520359

$39.99

USD

You're Reading a Free Preview
Pages 31 to 54 are not shown in this preview.
You're Reading a Free Preview
Pages 85 to 231 are not shown in this preview.
You're Reading a Free Preview
Pages 262 to 323 are not shown in this preview.
You're Reading a Free Preview
Pages 360 to 770 are not shown in this preview.

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Radu Marinescu liked this
PRASATH.R liked this
PRASATH.R liked this
PRASATH.R liked this
dhanrajbaid liked this
Beningh Harles liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->