mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
[1805] Linter Cleanup
This commit is contained in:
parent
17a7af959a
commit
256be4c8a9
@ -270,7 +270,7 @@ class WindowsHotkeyMgr(AbstractHotkeyMgr):
|
|||||||
"""Stop acquiring hotkey state."""
|
"""Stop acquiring hotkey state."""
|
||||||
pass
|
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.
|
Return configuration (keycode, modifiers) or None=clear or False=retain previous.
|
||||||
|
|
||||||
|
3
theme.py
3
theme.py
@ -445,7 +445,8 @@ class _Theme:
|
|||||||
root.withdraw()
|
root.withdraw()
|
||||||
root.update_idletasks() # Size and windows styles get recalculated here
|
root.update_idletasks() # Size and windows styles get recalculated here
|
||||||
hwnd = win32gui.GetParent(root.winfo_id())
|
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:
|
if theme == self.THEME_TRANSPARENT:
|
||||||
win32gui.SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW | WS_EX_LAYERED) # Add to taskbar
|
win32gui.SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW | WS_EX_LAYERED) # Add to taskbar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user