[1805] Linter Cleanup

This commit is contained in:
David Sangrey committed 2024-06-10 23:03:20 -04:00
1 parent 17a7af959a
commit 256be4c8a9
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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.
+2 -1
View File
@@ -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