mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-20 04:39:57 +08:00
Change keyboard module
This commit is contained in:
parent
b2f12db83a
commit
19118240c8
File diff suppressed because one or more lines are too long
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user