"""
a button that verifies exit requests to reuse, attach an instance to other GUIs, and re-pack as
desired
"""

from tkinter import *
from tkinter.messagebox import askokcancel

class Quitter(Frame):

    """Docstring for Quitter. """

    def __init__(self,parent=None):
        """TODO: to be defined1.

        :parent: TODO

        """
        Frame.__init__(self)
        self.pack()
        widget= Button(self,text='Quit',command=self.quit)
        widget.pack(side=LEFT,expand=YES,fill=BOTH)


    def quit(self):
        ans = askokcancel('Verify exit', "Really quit?")
        if ans:Frame.quit(self)

if __name__ == "__main__":
    Quitter().mainloop()
