Akascape / py-window-styles

Customize your python UI window with awesome pre-built windows 11 themes.
Creative Commons Zero v1.0 Universal
257 stars 15 forks source link

Style doesn't apply in windows 10 when windows' size is locked. #12

Closed dyslexia01 closed 6 months ago

dyslexia01 commented 6 months ago

when I set root.resizable(width=False, height=False)

The style doesn't change. I'm using normal tkinter.

Akascape commented 6 months ago

@dyslexia01 Don't add resize after calling pywinstyles.

Wrong ❌

pywinstyles.apply_style(root, "...")
root.resizable(False,False)

Correct ✅

root.resizable(False,False)
pywinstyles.apply_style(root, "...")