MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / run

Method run

Day01-15/Day13/multithread4.py:21–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 class DownloadTaskHandler(Thread):
20
21 def run(self):
22 # 模拟下载任务需要花费10秒钟时间
23 time.sleep(10)
24 tkinter.messagebox.showinfo('提示', '下载完成!')
25 # 启用下载按钮
26 button1.config(state=tkinter.NORMAL)
27
28 def download():
29 # 禁用下载按钮

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected