From 85f5c3283dd50d35226990ab129d58fc4ebf4e66 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Tue, 11 Jun 2024 11:40:18 -0400 Subject: [PATCH] [1805] Shut UP flake8 --- prefs.py | 3 ++- theme.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/prefs.py b/prefs.py index 7e4465d1..e2afa280 100644 --- a/prefs.py +++ b/prefs.py @@ -1090,7 +1090,8 @@ class PreferencesDialog(tk.Toplevel): for i in range(start, len(components)): try: if (not SHGetLocalizedName('\\'.join(components[:i+1]), buf, MAX_PATH, ctypes.byref(pidsRes)) and - win32api.LoadString(ctypes.WinDLL(expandvars(buf.value))._handle, pidsRes.value, buf, MAX_PATH)): + win32api.LoadString(ctypes.WinDLL(expandvars(buf.value))._handle, + pidsRes.value, buf, MAX_PATH)): display.append(buf.value) else: diff --git a/theme.py b/theme.py index 6024bf4f..b638bea2 100644 --- a/theme.py +++ b/theme.py @@ -441,10 +441,12 @@ class _Theme: root.update_idletasks() # Size and windows styles get recalculated here hwnd = win32gui.GetParent(root.winfo_id()) win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, - win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE) & ~win32con.WS_MAXIMIZEBOX) # disable maximize + win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE) + & ~win32con.WS_MAXIMIZEBOX) # disable maximize if theme == self.THEME_TRANSPARENT: - win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, win32con.WS_EX_APPWINDOW | win32con.WS_EX_LAYERED) # Add to taskbar + win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, + win32con.WS_EX_APPWINDOW | win32con.WS_EX_LAYERED) # Add to taskbar else: win32gui.SetWindowLong(hwnd, win32con.GWL_EXSTYLE, win32con.WS_EX_APPWINDOW) # Add to taskbar