Change keyboard module

This commit is contained in:
naibo 2023-07-09 09:52:55 +08:00
parent b2f12db83a
commit 19118240c8
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@ def on_release_creator(event):
if key.char == 'p': # 当按下esc键时退出监听 if key.char == 'p': # 当按下esc键时退出监听
if event._flag == False: if event._flag == False:
print("任务执行中按p键暂停执行。") print("任务执行中按p键暂停执行。")
print("Task is running, long press 'p' to pause.") print("Task is running, press 'p' to pause.")
# 设置Event的值为True使得线程b可以继续执行 # 设置Event的值为True使得线程b可以继续执行
event.set() event.set()
else: else: