from functools import partial as pto from Tkinter import Tk, Button, X from tkMessageBox import showinfo, showwarning, showerror showinfo('Info', 'Info Button Pressed!')