tkinter messagebox
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:
python --version |
Related courses
Tkinter Message box

The showinfo() function is in a different module depending on the Python version.
Python 3.x
from tkinter import messagebox |
Python 2.7
import Tkinter |
Tkinter showerror, showwarning and showinfo

Tkinter includes several other message boxes:
- showerror()
- showwarning()
- showinfo()
Python 3.x
import tkinter |
Python 2.7
import Tkinter |
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: