

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Setup
incomplete
2: Tkinter
incomplete
3: Window
incomplete
This lesson's interactive features are locked, please to keep using them
Let's just get a graphical window up and running. When we run our code, it should open a new window with a blank canvas that our program can then draw on.
tkinter:from tkinter import Tk, BOTH, Canvas
update_idletasks() and update() methods to accomplish this.self.__root = Tk()
...
self.__root.protocol("WM_DELETE_WINDOW", self.close)
win = Window(800, 600)
win.wait_for_close()