Create a MessageBox :
To show a message box using Tkinter, you can use messagebox library like this:
1. from tkinter import messagebox
2. messagebox.showinfo(‘Message title’ , ‘Message content’)
Pretty easy!!
Let’s show a message box when the user clicks a button.
The output of the above code is shown below:
And when you will press the created button, a messagebox will appear on the screen as shown below:
Blog written by:
Rohit Sharma