Dec-18-2016, 04:28 PM
I am new to GUI on the pi but have used python 3 to sample a temperature probe.
I simply want to open a GUI frame and update it every time there is a new temperature measurement.
So using this simulation test programme how do i get it to display temperature in the GUI frame every 0.5 seconds.
I don’t want to have a button to press just update the frame with the new value.
Any help on tkinter how to achieve this?
I simply want to open a GUI frame and update it every time there is a new temperature measurement.
So using this simulation test programme how do i get it to display temperature in the GUI frame every 0.5 seconds.
I don’t want to have a button to press just update the frame with the new value.
import time for temperature in range(5) print(temperature) time.sleep(0.5)This test programme will write temperature to the console output but I want it to write to a GUI frame so I can add additional functionality later.
Any help on tkinter how to achieve this?