Skip to content

Commit a7b61ef

Browse files
committed
Fix #863 with a warning that users might need to install Tk
1 parent dfaa16f commit a7b61ef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

book/graphics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ window = tkinter.Tk()
4343
tkinter.mainloop()
4444
```
4545

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+
4652
Here, `tkinter.Tk()` asks the desktop environment to create a window
4753
and returns an object that you can use to draw to the window. The
4854
`tkinter.mainloop()` call enters a loop that looks like this:[^infinite-loop]

0 commit comments

Comments
 (0)