From 0b234134531b7a09956ec53339536ed57c9c78eb Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Wed, 30 Oct 2024 15:43:05 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E9=A0=85=E7=9B=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_client.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dislocker_client.py b/dislocker_client.py index eb81ecf..d538189 100644 --- a/dislocker_client.py +++ b/dislocker_client.py @@ -50,7 +50,10 @@ if not os.path.isfile(client_config_path): }, "pc_uuid": "", "pc_token": "", - "hard_lock": False + "hard_lock": False, + "cover_image": "dislocker", + "language": "ja", + "language_file": "lang.json" } elif os.path.isfile(client_config_path): @@ -110,7 +113,7 @@ def master_password_gen(): result = {"password": password, "password_hash": password_hash} 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) if 'dislocker_client.exe' in task_exist.stdout: 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.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(1, weight=6)