why my image is moved instead of creating multiple images
I'm trying to show the same image on a few locations on my newly opened window using this: root = tkinter.Tk() w, h = root.winfo_screenwidth(), root.winfo_screenheight() root.geometry("%dx%d+0+0" % (w, h)) for i in range(len(entities) + 1): img = ImageTk.PhotoImage(Image.open(path)) panel = tkinter.Label(root, image = img) panel.grid(row = i, column = i) This indeed displays the first image, but only moves it around, instead of creating new images. How can I fix that?
found it! I used a list instead, to store the images and then treat each one separately by changing my code to: entity_images =  for i in range(len(entities)): img = ImageTk.PhotoImage(Image.open(path)) entity_images.append(img) panel = tkinter.Label(root, image = entity_images[i]) panel.grid(row = i, column = i)
installing PyQt 5 on windows 7 with python 3.4
django powered website switches between logged in users
Using conda install within a python script
How to create a memory-mapped file in Python that is accessible from a called application?
Sorting and indexing between 2 numpy arrays
How to catch Exception and still proceed on with the task?
how to use dir() as default argument within a function [duplicate]
Python clear button
pyspark assigning name to column agg output [duplicate]
Python subclass interact to master class
Combining different names in a database
Insert into mysql python - not working
How to specify conda requirement file?
Pip installs old version of package
Python Tkinter coordinate canvas error
How can I implement vice versa mapping in Python?