mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-13 15:07:24 +08:00
Reformat files with black
This commit is contained in:
parent
e64a426bbc
commit
e65b10ab77
2 changed files with 3 additions and 3 deletions
|
@ -597,7 +597,7 @@ def main_gui(config_dict: dict, config_file: str, version_string: str):
|
||||||
if event == "configure":
|
if event == "configure":
|
||||||
config_dict = config_gui(config_dict, config_file)
|
config_dict = config_gui(config_dict, config_file)
|
||||||
# Make sure we trigger a GUI refresh when configuration is changed
|
# Make sure we trigger a GUI refresh when configuration is changed
|
||||||
event = 'state-button'
|
event = "state-button"
|
||||||
if event == _t("generic.destination"):
|
if event == _t("generic.destination"):
|
||||||
try:
|
try:
|
||||||
if backend_type:
|
if backend_type:
|
||||||
|
|
|
@ -20,7 +20,7 @@ def minimize_current_window():
|
||||||
"""
|
"""
|
||||||
Minimizes current commandline window in GUI mode
|
Minimizes current commandline window in GUI mode
|
||||||
"""
|
"""
|
||||||
if os.name == 'nt':
|
if os.name == "nt":
|
||||||
current_executable = os.path.abspath(sys.argv[0])
|
current_executable = os.path.abspath(sys.argv[0])
|
||||||
# console window will have the name of current executable
|
# console window will have the name of current executable
|
||||||
hwndMain = win32gui.FindWindow(None, current_executable)
|
hwndMain = win32gui.FindWindow(None, current_executable)
|
||||||
|
|
Loading…
Add table
Reference in a new issue