Mar-13-2018, 02:11 PM
OK, i found a solution :
Into 'window_about.py', i used for the def __init__(), a tk.Toplevel, and after i can use the object 'self.img_logo':
Into 'window_about.py', i used for the def __init__(), a tk.Toplevel, and after i can use the object 'self.img_logo':
class gui(tk.Tk): ''' Display a GUI for window about''' def __init__(self, parent, init): tk.Toplevel.__init__(self, parent) self.parent = parent (...) def ui(self): '''Displaying UI''' # Frame for service informations frm_service = ttk.Frame(self) frm_service.grid(row=7, column=1) ## Add an image logo img_service = ttk.Label(frm_service, image=self.logo) img_service.grid(row=0, column=0, rowspan=2)Problem resolved!