def deleteme():
    result = tkMessageBox.askquestion('Delete', 'Are You Sure?', icon='warning'
        )
if result == 'yes':
    print('Deleted')
else:
    print("I'm Not Deleted Yet")
Tkinter askquestion dialog box