Python Forum

Full Version: How to show images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How would I show an image file? So, I have in mind a simple enough piece of code ask for input
What is your favorite planet?
Now output a picture of said planet, how would I go about this I thought tkinter but I’ve yet to
Figure it out.
Do I use pillow and tkinter? What is the method here?
tkinter will do, images are usually presented on a canvas, using photoimage to render the image.
see: https://www.python-course.eu/tkinter_canvas.php
search for 'The Canvas Image Item'