From 256be4c8a9351729798382234c88cafa4abfeace Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Mon, 10 Jun 2024 23:03:20 -0400 Subject: [PATCH] [1805] Linter Cleanup --- hotkey/windows.py | 2 +- theme.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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