Questions tagged [tkinter-photoimage]

In tkinter, some widgets can display an image such as Label and Button. These widgets take an image= keyword argument that allows them to display an image.

There's a good description of tkinter Photoimages here on TkDocs.

17 questions
0
votes
1 answer

Add tag to Tkinter PhotoImage

I'm writing a program that creates a new canvas item, with a specific image depending on a certain variable. Here's an example of what I'm after, with >>>>tag<<<< representing (preferably a string) linked to one of those PhotoImages: image =…
0
votes
2 answers

How to resize the ImageTk.PhotoImage(data=memoryview) without Image.open at first

I am 100 percent sure that this question is never asked before. I uploaded an image to postgres database. I pulled it to view and currently I am able to view it with this code down below: row[19] is a memoryview. Thats why I was not able to open it…
1
2