From 1e1ab94dcf39e55a8c43985cdda9c3c5f974c2c8 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Tue, 24 Sep 2024 00:10:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=9D=E3=82=8C=E3=81=9E=E3=82=8C=E3=81=AE?= =?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E5=87=A6=E7=90=86=E3=81=AE?= =?UTF-8?q?=E9=A0=86=E7=95=AA=E3=82=92=E8=A6=8B=E7=9B=B4=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_client.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dislocker_client.py b/dislocker_client.py index 8f9ba1e..d3517ab 100644 --- a/dislocker_client.py +++ b/dislocker_client.py @@ -167,7 +167,16 @@ def init(**kwargs): class App(customtkinter.CTk): def __init__(self): super().__init__() - + + if client_config["testing"] == True: + pass + else: + self.block_taskmgr() + self.block_key() + shutup_window = keyboard.press_and_release('windows + d') + self.attributes('-fullscreen', True) + self.attributes('-topmost', True) + if client_config["hard_lock"] == True: exit_explorer = subprocess.run('taskkill /f /im explorer.exe', startupinfo=sp_startupinfo, stdout=subprocess.PIPE, text=True) if exit_explorer.returncode == 0: @@ -178,15 +187,6 @@ class App(customtkinter.CTk): self.title(f"{app_name} | ロック中") self.iconbitmap(default=resource_path + '\\icon\\dislocker.ico') - if client_config["testing"] == True: - pass - else: - shutup_window = keyboard.press_and_release('windows + d') - self.attributes('-fullscreen', True) - self.attributes('-topmost', True) - self.block_taskmgr() - self.block_key() - self.frame = customtkinter.CTkFrame(self, corner_radius=0, fg_color='transparent') self.frame.grid(row=0, column=0, sticky='nsew')