How to put iconbitmap on a CustomTkinter TopLevel? Question: This is the code example: class ToplevelWindow(customtkinter.CTkToplevel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.geometry("400×300") self.title("New Window") self.resizable(False, False) self.iconbitmap(‘icon.ico’) self.after(100, self.lift) class App(customtkinter.CTk): def __init__(self): super().__init__() self.geometry("550×150") self.title("Title") self.resizable(False, False) logo_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_images") self.logo = customtkinter.CTkImage( Image.open(os.path.join(logo_path, "MCB.png")), size=(90, 54)) self.labelimage = customtkinter.CTkLabel(master=self, text=None, image=self.logo) …
Total answers: 1