Closed peyman1959 closed 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")
pywinstyles.apply_style(window.TKroot, 'mica')
from ctypes import windll import pywinstyles hwnd = windll.user32.GetActiveWindow() pywinstyles.change_header_color(hwnd, color="blue")
@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") ...
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")