I am new at python. I am using python 2.7. I want to have messagebox to notify me on every 50 seconds. when I write this:
import sys
import time
import threading
if sys.version_info < (3,0):
        import Tkinter as tkinter
        import tkMessageBox as mbox
else:
        import tkinter
        import tkinter.messagebox as mbox
window = tkinter.Tk()
window.wm_withdraw()
def loop():
    threading.Timer(20.0, loop).start()
    mbox.showinfo('my app',time.ctime())
loop()
But when I press OK application freeze. What I am doing wrong?