The image doesn't show in Tkinter. The same code work in a new window, but in my class it does not. What could be the problem ?
import Tkinterroot = Tkinter.Tkclass InterfaceApp(root):def __init__(self,parent):root.__init__(self,parent)self.parent = parentself.initialize()def initialize(self):frPic = Tkinter.Frame(bg='', colormap='new')im = Tkinter.PhotoImage(file="tr.gif")imLabel = Tkinter.Label(frPic, image=im)frPic.grid(row = 4, columnspan = 10, sticky='EW')imLabel.grid(row=3,column=30)if __name__ == '__main__':app = InterfaceApp(None)app.title("P")app.mainloop()