tkinter show alert code example
Example 1: tkinter info box
from tkinter import messagebox
messagebox.showinfo('Title', 'Information')
Example 2: tkinter messagebox
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def hello():
tkMessageBox.showinfo("Say Hello", "Hello World")
B1 = Tkinter.Button(top, text = "Say Hello", command = hello)
B1.pack()
top.mainloop()