From the course: Python GUI Development with Tkinter
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Presenting choices with check buttons and radio buttons
From the course: Python GUI Development with Tkinter
Presenting choices with check buttons and radio buttons
- [Instructor] When you need the user to make a selection amongst several options, the check button and radio button are excellent widgets to use. Check buttons are a slightly more advanced version of the basic button. In addition to executing a call back function when clicked, they can also store a binary value. This makes check buttons ideal for when the user needs to select or unselect options from a series of choices. Radio buttons are similar to check buttons because they also maintain a value. However, unlike a check button, they're not limited to only two choices. Radio buttons allow a user to make one selection from a series of mutually exclusive options. Their ideal for when you only have a handful of choices for a user. For example, selecting your meal choice for a banquet. I've already imported the Tkinter package as well as the themed TK module and created my top level root window using the TK constructor method. So let's jump straight in to creating a check button. I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Displaying text and images with labels9m 18s
-
(Locked)
Capturing input with buttons6m 45s
-
(Locked)
Presenting choices with check buttons and radio buttons7m 15s
-
(Locked)
Entering single-line text with the Entry widget4m 53s
-
(Locked)
Making selections with the Combobox and Spinbox5m 38s
-
(Locked)
Inputting values and displaying status with the Scale and Progressbar7m 34s
-
(Locked)
-
-
-
-
-
-