Reputation: 52911
How can I place an image in a Tkinter GUI using the python standard library?
Upvotes: 0
Views: 633
Reputation: 15345
I don't normally use Tkinter, but I'll take a shot at answering. According to Google, loading images in Tkinter has two main gotchas:
The example code for loading non-GIF images should also work perfectly well as an example of the basic procedure for displaying images in Tkinter GUIs.
If you'd prefer a more practical example, PySol is a suite of solitaire games written with Tkinter and PySolFC, its successor, demonstrates the same usage adapted to the new python-ttk
Tkinter API which Python 2.7 added.
Upvotes: 2