From 7456c1f9db99e4bc135635cbcf90d110d9189071 Mon Sep 17 00:00:00 2001 From: Falko Habel Date: Thu, 4 Apr 2024 12:36:53 +0200 Subject: [PATCH] fixed Bug with Icon --- scripts/ClosePopup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ClosePopup.py b/scripts/ClosePopup.py index 1afa220..bbb3d2f 100644 --- a/scripts/ClosePopup.py +++ b/scripts/ClosePopup.py @@ -1,12 +1,16 @@ import customtkinter as Ctk - +from icons.icons import Icons class ClosePopup(Ctk.CTkToplevel): def __init__(self,master, callback, **kwargs, ): super().__init__(master, **kwargs) + self.icons = Icons() self.my_font = Ctk.CTkFont(family="Berlin Sans FB", size=22) self.geometry("400x300") self.resizable(False, False) + icon_path = self.icons.get_icon_path() + self.iconbitmap(icon_path) + self.after(201, lambda: self.iconbitmap(icon_path)) self.callback = callback self.label = Ctk.CTkLabel(self, text="Do you want to leave?\n You might lose some Data", font=self.my_font) # Add exit button