What is best way to get this work? Script hanging at showinfo:
from tkinter import *
from tkinter.messagebox import *
from threading import Timer
def timerDone():
showinfo('Alert','Alert')
window = Tk()
mainTimer = Timer(3, timerDone)
mainTimer.start()
window.mainloop()
I use Python 3. Is there is a way to get it work without Queue or additional imports?
I don't use "after" method because Timer can be stoped or changed - I have a lot of timers with dynamically changeable interval and this is very inconvenient.