pythonのtkinterについての質問です。下のソースコードを実行してみたところ、
~~~~~~~~~~~~~~~~~~~
import tkinter as tk
root = tk.Tk()
root.mainloop()
~~~~~~~~~~~~~~~~~~~
エラーが発生してしまいました。↓
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-7-059cbc39a2a6> in <module>
1 import tkinter as tk
2 root = tk.Tk()
----> 3 root.mainloop()
~/anaconda3/lib/python3.7/tkinter/__init__.py in mainloop(self, n)
1281 def mainloop(self, n=0):
1282 """Call the mainloop of Tk."""
-> 1283 self.tk.mainloop(n)
1284 def quit(self):
1285 """Quit the Tcl interpreter. All widgets will be destroyed."""
KeyboardInterrupt:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
原因がわかる方よろしくお願いします。
ちなみに環境として、MacからanacondaのJupiter->python3->consoleで実行しました、