< Back

Post Lab 1: Red vs. Blue


Demonstrate your knowledge of Tkinter by writing a simple panel that utilizes two tk Buttons.

Details

In a file called red_vs_blue.py, create a tkinter window that contains two buttons: One labeled "Red", the other labeled "Blue." When the red button is pressed, the background of the window should change to red. When the blue button is pressed, the background of the window should change to blue.


Submission

Submit your .py file to inquire before class on Friday, Jan. 22nd.