Nov-06-2018, 02:19 PM
you can use something like:
If the image doesnt show and you are sure the path is correct try cast Icon to a global variable or as self.Icon = ImageTk.PhotoImage(Image), i think this has something to do with storing the image in RAM and had some issues with it before.
Hope that helps
for all in someList: Image = Image.open("assets/default.gif") Image = Image.resize((32, 32), Image.ANTIALIAS) Icon = ImageTk.PhotoImage(Image) visable_object= Lable(someelemet, image=Icon) visable_object.pack(side=TOP)you can replace (32, 32) with the x, y size you want to show the image in.
If the image doesnt show and you are sure the path is correct try cast Icon to a global variable or as self.Icon = ImageTk.PhotoImage(Image), i think this has something to do with storing the image in RAM and had some issues with it before.
Hope that helps