Bonjour à toutes et à tous,
Je suis en train de faire une application avec tkinter et je rencontre un soucis.
Je souhaite afficher la progression dans l'icône de la taskbar, et impossible de trouver si il existe une solution.
A savoir que je fais de l'overrideredirect.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 def overrideredirect(self, boolean=None): Tk.overrideredirect(self, boolean) GWL_EXSTYLE = -20 WS_EX_APPWINDOW = 0x00040000 WS_EX_TOOLWINDOW = 0x00000080 if boolean: hwnd = windll.user32.GetParent(self.winfo_id()) style = windll.user32.GetWindowLongW(hwnd, GWL_EXSTYLE) style = style & ~WS_EX_TOOLWINDOW style = style | WS_EX_APPWINDOW res = windll.user32.SetWindowLongW(hwnd, GWL_EXSTYLE, style) self.wm_withdraw() self.wm_deiconify()
Partager