Python hosting: Host, run, and code Python in the cloud!
The Tkinter tkMessageBox has various methods to display a message box.
There is a slight difference between Tkinter for Python 2.7 and Python 3.
To find your Python version try one of these commands:
Tkinter Message box
The showinfo() function is in a different module depending on the Python version.
from tkinter import messagebox
Tkinter showerror, showwarning and showinfo
Tkinter includes several other message boxes:
You may like: Tkinter Question Dialog or More Tkinter
If you are new to programming Tkinter, I highly recommend this course.
Posted in tk
Leave a Reply: