それぞれのブロック処理の順番を見直し
This commit is contained in:
parent
b090e27056
commit
1e1ab94dcf
1 changed files with 10 additions and 10 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue