bembry.org
Home / Technology / Python / Exercises

Tkinter Lesson 5 Exercises: More Widgets

Each assignment should omit the root.mainloop() method call at the end of the code. Also, each program must include a title for the window. Save these programs as tk5-1.py, tk5-2.py, etc. You must do either exercise 3-a or exercise 3-b.

Exercise 1:
Create a GUI program that uses any two of the new widgets introduced in this lesson.

Exercise 2:
Create (or edit) a GUI for the ubbi-dubbi / pig-latin program (pa9-1) using radio buttons in the GUI. Have the resulting word or phrase displayed in a Toplevel() window.

Exercise 3-a:
Create a GUI for a quizzing program (such as pa-14).

Exercise 3-b:
Create a color-picking GUI. On computers, colors are broken down into three portions, Red, Green, and Blue. Your GUI should have a slider scale for each color. As one slider is increased, the amount of that color should increase. The GUI should show a sample of the resulting color mix, as well as the Hex or RGB code for the color created.

Lesson Exercises Python Lessons Homepage

Restricted access