設定ファイルの項目追加
This commit is contained in:
parent
445b4d720e
commit
0b23413453
1 changed files with 6 additions and 3 deletions
|
@ -50,7 +50,10 @@ if not os.path.isfile(client_config_path):
|
||||||
},
|
},
|
||||||
"pc_uuid": "",
|
"pc_uuid": "",
|
||||||
"pc_token": "",
|
"pc_token": "",
|
||||||
"hard_lock": False
|
"hard_lock": False,
|
||||||
|
"cover_image": "dislocker",
|
||||||
|
"language": "ja",
|
||||||
|
"language_file": "lang.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
elif os.path.isfile(client_config_path):
|
elif os.path.isfile(client_config_path):
|
||||||
|
@ -110,7 +113,7 @@ def master_password_gen():
|
||||||
result = {"password": password, "password_hash": password_hash}
|
result = {"password": password, "password_hash": password_hash}
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def init(**kwargs):
|
def init(**kwargs):
|
||||||
task_exist = subprocess.run('tasklist /fi "IMAGENAME eq dislocker_client.exe"', startupinfo=sp_startupinfo, stdout=subprocess.PIPE, text=True)
|
task_exist = subprocess.run('tasklist /fi "IMAGENAME eq dislocker_client.exe"', startupinfo=sp_startupinfo, stdout=subprocess.PIPE, text=True)
|
||||||
if 'dislocker_client.exe' in task_exist.stdout:
|
if 'dislocker_client.exe' in task_exist.stdout:
|
||||||
task_count = task_exist.stdout.count("dislocker_client.exe")
|
task_count = task_exist.stdout.count("dislocker_client.exe")
|
||||||
|
@ -280,7 +283,7 @@ class Lock(customtkinter.CTkToplevel):
|
||||||
self.textbox_font = customtkinter.CTkFont(family="meiryo", size=14)
|
self.textbox_font = customtkinter.CTkFont(family="meiryo", size=14)
|
||||||
self.button_font = customtkinter.CTkFont(family="meiryo", size=14)
|
self.button_font = customtkinter.CTkFont(family="meiryo", size=14)
|
||||||
|
|
||||||
self.cover_img = customtkinter.CTkImage(light_image=Image.open(resource_path + '\\cover\\dislocker_light.png'), dark_image=Image.open(resource_path + '\\cover\\dislocker_dark.png'), size=(160, 320))
|
self.cover_img = customtkinter.CTkImage(light_image=Image.open(f'{resource_path}\\cover\\{client_config["cover_image"]}_light.png'), dark_image=Image.open(f'{resource_path}\\cover\\{client_config["cover_image"]}_dark.png'), size=(160, 320))
|
||||||
|
|
||||||
self.grid_columnconfigure(0, weight=1)
|
self.grid_columnconfigure(0, weight=1)
|
||||||
self.grid_columnconfigure(1, weight=6)
|
self.grid_columnconfigure(1, weight=6)
|
||||||
|
|
Loading…
Reference in a new issue