def quit(self): if askokcancel('Verify exit', 'Really quit?'): self._root().destroy() ################################################################################