Skip to Main Content
Learning Perl/Tk
book

Learning Perl/Tk

by Nancy Walsh
January 1999
Beginner content levelBeginner
373 pages
9h 43m
English
O'Reilly Media, Inc.
Content preview from Learning Perl/Tk

Chapter 16. Methods for Any Widget

So far, most of the chapters in this book have concentrated on specific widgets. This chapter covers the methods that apply to all widgets. You'll probably never need most of these methods, but there are a few that you'll use frequently.

Many times, you'll use a MainWindow reference (usually $mwin our examples) to call these methods, but you can also call them from other widgets, such as $button, $checkbutton, and so on. Most of the methods are informational only, meaning you pass no arguments to them; you only get a value back.

We'll use the generic $widget here instead of a specific widget type. This will help you to remember that these are multipurpose methods.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Perl/Tk

Mastering Perl/Tk

Stephen Lidie, Nancy Walsh

Publisher Resources

ISBN: 1565923146Supplemental ContentCatalog PageErrata