Tkinter Lesson 1 Exercises: Introducing Tkinter and GUIs
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 tk1-1.py, tk1-2.py, etc.
Exercise 1:
Create a window that shows your name in a fancy font and a pretty color.
Exercise 2:
Create a window with five buttons. Make each button a different color, and disable the one on the bottom of the window. Each button should have some text on it.
Exercise 3:
Create a "quiz" window. The window should have four questions, each followed by an entry box, and a button at the bottom to submit the quiz for grading.
Exercise 4:
Create a password entry window. The window should ask the user for their password, include an entry box that "hides" the text the user enters, and a button for submitting the password.
Restricted access |