Jul-11-2020, 11:53 AM
Hi,
i write an app using iconify after creating the window:
Trying a few times it appears always top left but shifting a bit each time a bit to botoom right.
Note: This is just done the first time after start of the program and clicking it in the windows task bar. Moving the window afterwards and click on the [-] symbol making it invisible and then clicking it in the windows task bar to make it visible, it is apearing at the position where it was moved before.
Using Windows 10
If i try with the withdraw the problem doesn't happen, but withdraw does completely hiding the program. It even doesn't appear in the tasklist. The only way to test was to make it visible after a few seconds using deiconify(). But i whant the user to make it visible by clicking to the icon.
i write an app using iconify after creating the window:
root = tk.Tk() app = Window(root) root.iconify() #root.wm_withdraw() root.mainloop()problem: When clicking on it in the Windows task bar, the window doesn't appear at the previous position but on a positon somewhere top left.
Trying a few times it appears always top left but shifting a bit each time a bit to botoom right.
Note: This is just done the first time after start of the program and clicking it in the windows task bar. Moving the window afterwards and click on the [-] symbol making it invisible and then clicking it in the windows task bar to make it visible, it is apearing at the position where it was moved before.
Using Windows 10
If i try with the withdraw the problem doesn't happen, but withdraw does completely hiding the program. It even doesn't appear in the tasklist. The only way to test was to make it visible after a few seconds using deiconify(). But i whant the user to make it visible by clicking to the icon.