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