質問編集履歴
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -68,17 +68,17 @@
|
|
68
68
|
PS C:\Users\user\Desktop> & C:/Users/user/AppData/Local/Programs/Python/Python37/python.exe c:/Users/user/Desktop/test.py
|
69
69
|
Exception in thread Thread-1:
|
70
70
|
Traceback (most recent call last):
|
71
|
-
File "C:\Users\
|
71
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
|
72
72
|
self.run()
|
73
|
-
File "C:\Users\
|
73
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\threading.py", line 870, in run
|
74
74
|
self._target(*self._args, **self._kwargs)
|
75
|
-
File "c:/Users/
|
75
|
+
File "c:/Users/user/Desktop/test.py", line 19, in print_nowtime
|
76
76
|
time_label["text"] = "{0:%Y/%m/%d %H:%M:%S}".format(now)
|
77
|
-
File "C:\Users\
|
77
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1492, in __setitem__
|
78
78
|
self.configure({key: value})
|
79
|
-
File "C:\Users\
|
79
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1485, in configure
|
80
80
|
return self._configure('configure', cnf, kw)
|
81
|
-
File "C:\Users\
|
81
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1476, in _configure
|
82
82
|
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
|
83
83
|
RuntimeError: main thread is not in main loop
|
84
84
|
|