import time
import tkMessageBox
stime = time.time()
while time.time() - stime < 3600: # 3600 is where you set the length of time to wait by your demand.
time.sleep(2) #I prefer it sleeps longer.
else:
tkMessageBox.askquestion("Delete", "Time up", icon="warning"); # This may not be the very accurate mesagebox to use, I just pick the first one I got to save time. # And it works