mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
[1805] Shut UP flake8
This commit is contained in:
parent
625856c31c
commit
85f5c3283d
3
prefs.py
3
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:
|
||||
|
6
theme.py
6
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user