Skip to content

Commit

Permalink
[1805] Linter Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Jun 11, 2024
1 parent 17a7af9 commit 256be4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hotkey/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def acquire_stop(self) -> None:
"""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.
Expand Down
3 changes: 2 additions & 1 deletion theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ def apply(self, root: tk.Tk) -> None: # noqa: CCR001, C901
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
Expand Down

0 comments on commit 256be4c

Please sign in to comment.