質問編集履歴
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,9 +15,7 @@
|
|
15
15
|
import tkinter as tk
|
16
16
|
|
17
17
|
def on_button():
|
18
|
-
global threads
|
19
18
|
thread = threading.Thread(target=control_task)
|
20
|
-
threads.append(thread)
|
21
19
|
thread.start()
|
22
20
|
|
23
21
|
def control_task():
|
@@ -71,7 +69,6 @@
|
|
71
69
|
|
72
70
|
|
73
71
|
if __name__ == "__main__":
|
74
|
-
threads = []
|
75
72
|
root = tk.Tk()
|
76
73
|
|
77
74
|
button = tk.Button(root, text="Open", width=10, command=on_button)
|