Hi,
I have this
def update_labelain0_val(self):
val=get_ain0()
self.labelain0_val.set(val)
self.labelain0.config(bg="#32CD32")
#0-12.9v -> 0-6000N
valain0=float(val)
valain0_calc=valain0*6000/12.9
valain0_calc=int(valain0_calc)
self.labelain0_calc.set(valain0_calc)
self.labelain0calc.config(bg="#FF8C00")
threading.Timer(0.1, self.update_labelain0_val).start()
return
This is part of a class which update a label in a window. It is working fine. My problem is :
how can i give a variable name o this thread and have a function that stop the thread before close the window.
Thank you