root.lift()#show window above all other applications
root.attributes("-topmost",True)#window stays above all other applications
answer=tk.messagebox.askokcancel(message="Do you want to exit/abort the measurement? Please note that any unsaved measuerement results will be deleted!")
root.destroy()
returnanswer
#this function displays an information box!
definformation_box(information):
#open dialog and hide the main window
root=tk.Tk()
root.withdraw()
root.lift()#show window above all other applications
root.attributes("-topmost",True)#window stays above all other applications