>>> from Tkinter import tkMessageBox
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from Tkinter import tkMessageBox
ImportError: cannot import name tkMessageBox
I am getting this error, even though from Tkinter import *
is working fine. I am using Python 2.7.5.
tkMessageBox
is a module on its own, so you should import it separately:
import Tkinter
import tkMessageBox
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With