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 4. Checkbuttons and Radiobuttons

This chapter discusses both checkbutton and radiobutton widgets. Although they are very similar, they are used for different purposes.

Checkbuttons are useful when you want to select as many items as you want, such as a shopping list. Radiobuttons are used in group situations when you must make a choice between items, such as on a multiple-choice exam:

Q1: What year did Columbus discover America?
A) 1400
B) 1470
C) 1472
D) 1492
E) none of the above

Because radiobuttons are grouped together, you are forced to select one and only one choice in that group. If the default choice is always A and you click on D, A would be automatically unclicked (or unselected).

The two sections in this chapter cover how to use both widget types and ways to set them up and configure them.

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