i have got following:
class simpleapp_tk(tkinter.Tk):
def __init__(self,parent):
tkinter.Tk.__init__(self,parent)
self.parent = parent
self.initialize()
def clock(self): # timer tick
print("Tick")
def ButtonStartGraphClick(self): # button click
self.NewTimer.start()
def initialize(self): # constructor
self.NewTimer = Timer(1,self.clock)
if __name__ == "__main__":
app = simpleapp_tk(None)
app.geometry("500x250")
app.title("TSC")
app.mainloop()
But my timer always tick only once, if i click button once more i have got exception that thread is already running