回答編集履歴
2
リソースの解放等の後始末を自分で明示的に記述
test
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
import tkinter as tk
|
8
8
|
|
9
9
|
import threading
|
10
|
+
|
11
|
+
import gc
|
10
12
|
|
11
13
|
|
12
14
|
|
@@ -106,8 +108,6 @@
|
|
106
108
|
|
107
109
|
root = app = None
|
108
110
|
|
109
|
-
import gc
|
110
|
-
|
111
111
|
gc.collect()
|
112
112
|
|
113
113
|
|
1
リソースの解放等の後始末を自分で明示的に記述
test
CHANGED
@@ -104,6 +104,12 @@
|
|
104
104
|
|
105
105
|
app.mainloop()
|
106
106
|
|
107
|
+
root = app = None
|
108
|
+
|
109
|
+
import gc
|
110
|
+
|
111
|
+
gc.collect()
|
112
|
+
|
107
113
|
|
108
114
|
|
109
115
|
if __name__ == "__main__":
|