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

PySimpleGUI #13

Closed peyman1959 closed 5 months ago

peyman1959 commented 5 months ago

not working with PySimpleGUI I tried : pywinstyles.apply_style(window.TKroot, 'mica') and : from ctypes import windll import pywinstyles hwnd = windll.user32.GetActiveWindow() pywinstyles.change_header_color(hwnd, color="blue")

Akascape commented 5 months ago

@peyman1959 I got the fix, you have finalize the window before running any function.

window = sg.Window("Demo", layout, finalize=True)

pywinstyles.change_header_color(window.TKroot, color="blue")
...