Some Other Widgets
There are many other standard widgets available for your use. Let's look at a few of the most common ones.
A check button, also called a check box, is represented by the TkCheckbutton class. This is used when a specific user choice can have two states (essentially “on” and “off”). It is usually represented onscreen by a square box that may be checked or unchecked.
A radio button (TkRadiobutton) is analogous to the tuning preset buttons on a car radio; only one can be selected at a time. This is used when there is a small, fixed number of mutually exclusive choices available. A radio button usually appears as a circular “box” that may or may not be filled in. Check boxes are independent of each other, but radio buttons typically ...
Get Sams Teach Yourself Ruby in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.