I have a gui that I've written in wxPython, this is working as a software controller going to a PID type thermal controller. I need to get constant readings from the thermal controller to consistently output the current temperature of the device.
Let's say I have this function in another file:
def temp_read():
#this function will query a controller, then read the value
I import that function, and set it to the value of a TextCtrl widget:
out_current = wx.TextCtrl(self, pos=(250,8), size=(110,23), style=TE_READONLY)
out_temp = temp_read()#get value from function
out_current.SetValue(out_temp)#set value to widget
How do I set this up so that it constantly outputs, while leaving the gui functional to allow for the rest of control parameters(setting temperature and other items) to be set by the user?