Middle aged dad (electrical engineer not programmer by trade) trying to teach my 13 year old daughter electronics and programming. So far, I love Python. I am building a pro
GUI toolkits are not threadsafe. You can only built and change your GUI from the main thread.
Since reading the temperature does not take that long, you can remove all the threading code and use the after
-method from Tk.
Your read_temp_raw
function is very complicated:
def read_temp_raw():
with open(device_file) as temp:
return temp.read().split('\n')