Closed Xiaokang2022 closed 3 weeks ago
@Xiaokang2022 Try the optimised mode, or maybe add root.update()
or root.focus_set()
.
I tried the three methods you said, but they didn't work
I have two computers, one with Windows 10 and the other with Windows 11. This issue doesn't occur on my Windows 11 computer. So this could be system-related? I want my program to work the same on both computers.
@Xiaokang2022 Yes, it can be issue related to windows 10. But try different methods to solve this.
root.withdraw()
and root.deiconify()
root.update_idletasks()
@Xiaokang2022 Yes, it can be issue related to windows 10. But try different methods to solve this.
root.withdraw()
androot.deiconify()
root.update_idletasks()
Maybe it's not a good solution, but it works, thanks!
@Akascape It may cause by ExtendFrameIntoClientArea
so the titlebar's color was mixed with the backrgound forcely.
I also have this issue on Windows 10.
Windows 10 22H2 (19045.4529)
3.12.3
1.8
tkinter
When using the dark theme, the title bar of the window is not dark, but looks like this:
When the window has undergone some operations, such as losing focus and regaining focus, or zooming, the title bar of the window will display normally: