Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to show images
#1
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?
Reply
#2
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'
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIL Image im.show() no show! Pedroski55 2 928 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  PIL Image im.show() no show! Pedroski55 6 4,740 Feb-08-2022, 06:32 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020