There was an error while loading. Please reload this page.
1 parent dfaa16f commit a7b61efCopy full SHA for a7b61ef
1 file changed
book/graphics.md
@@ -43,6 +43,12 @@ window = tkinter.Tk()
43
tkinter.mainloop()
44
```
45
46
+::: {.installation}
47
+Usually Tk ships with Python, so you probably already have it
48
+installed. But on some Linux distributions, you might need to install
49
+a separate package called something like `python3-tk`.
50
+:::
51
+
52
Here, `tkinter.Tk()` asks the desktop environment to create a window
53
and returns an object that you can use to draw to the window. The
54
`tkinter.mainloop()` call enters a loop that looks like this:[^infinite-loop]
0 commit comments