Apr-21-2020, 10:24 PM
Can you show how you're doing this with a button press now?
One way to be to create a method that is passed in the object you want to update. It can poll the sensor, then add itself to the tkinter event queue with after() so that it will poll periodically.
One way to be to create a method that is passed in the object you want to update. It can poll the sensor, then add itself to the tkinter event queue with after() so that it will poll periodically.