@@ -42,9 +42,9 @@ def install():
4242 raise FileNotFoundError
4343 except FileNotFoundError :
4444 messagebox .CTkMessagebox (
45- title = "Error" ,
46- message = "Folder not found or not valid!" ,
47- icon = "cancel" ,
45+ title = "Error" ,
46+ message = "Folder not found or not valid!" ,
47+ icon = "cancel" ,
4848 width = 100 ,
4949 height = 50
5050 )
@@ -75,9 +75,11 @@ def _install(path):
7575 config = configparser .ConfigParser ()
7676 config .read_file (config_file )
7777 if "Logging.Console" in config :
78- config ["Logging.Console" ]["Enabled" ] = not bool (disable_logs_button .get ())
78+ config ["Logging.Console" ]["Enabled" ] = not bool (
79+ disable_logs_button .get ())
7980 else :
80- config ["Logging.Console" ] = {"Enabled" : not bool (disable_logs_button .get ())}
81+ config ["Logging.Console" ] = {
82+ "Enabled" : not bool (disable_logs_button .get ())}
8183 config .write (config_file )
8284 progress_bar .step ()
8385
@@ -97,8 +99,10 @@ def launch():
9799app .iconbitmap (default = resource_path ("icon.ico" ))
98100app .resizable (False , False )
99101
100- path_entry = customtkinter .CTkEntry (app , placeholder_text = "Game path" , width = 228 )
101- browse_button = customtkinter .CTkButton (app , text = "Browse" , command = browse , width = 1 )
102+ path_entry = customtkinter .CTkEntry (
103+ app , placeholder_text = "Game path" , width = 228 )
104+ browse_button = customtkinter .CTkButton (
105+ app , text = "Browse" , command = browse , width = 1 )
102106disable_logs_button = customtkinter .CTkCheckBox (app , text = "Disable logs" )
103107disable_logs_button .select ()
104108install_button = customtkinter .CTkButton (app , text = "Install" , command = install )
0 commit comments