diff --git a/hotkey/windows.py b/hotkey/windows.py index cbcbd161..188c89e9 100644 --- a/hotkey/windows.py +++ b/hotkey/windows.py @@ -270,7 +270,7 @@ class WindowsHotkeyMgr(AbstractHotkeyMgr): """Stop acquiring hotkey state.""" pass - def fromevent(self, event) -> bool | tuple | None: + def fromevent(self, event) -> bool | tuple | None: # noqa: CCR001 """ Return configuration (keycode, modifiers) or None=clear or False=retain previous. diff --git a/theme.py b/theme.py index dc48499e..121bcb60 100644 --- a/theme.py +++ b/theme.py @@ -445,7 +445,8 @@ class _Theme: root.withdraw() root.update_idletasks() # Size and windows styles get recalculated here hwnd = win32gui.GetParent(root.winfo_id()) - win32gui.SetWindowLong(hwnd, GWL_STYLE, win32gui.GetWindowLong(hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX) # disable maximize + win32gui.SetWindowLong(hwnd, GWL_STYLE, + win32gui.GetWindowLong(hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX) # disable maximize if theme == self.THEME_TRANSPARENT: win32gui.SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW | WS_EX_LAYERED) # Add to taskbar