from functools import partial as ptofrom Tkinter import Tk, Button, Xfrom tkMessageBox import showinfo, showwarning, showerrorshowinfo('Info', 'Info Button Pressed!')