1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

[1805] Linter Cleanup

This commit is contained in:
David Sangrey 2024-06-10 23:03:20 -04:00
parent 17a7af959a
commit 256be4c8a9
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
2 changed files with 3 additions and 2 deletions

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.

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