def update(self, *args):
global clocktheme
temp_f_string = str(temp_f)
if int(float(animation_start_time))+5 <= int(float(time_second_mod)): #animation is delayed for better asthetics
if TEMPON == 1:
if clocktheme == 2: # if analog clock is black, temp display is updated dynamically
#comment out next line for dev work - no temp sensor connected
if TempProbePresent == 1:
read_temp() # If clock is shown, it goes really slow when updated dynamically
self.text = temp_f_string + u'\N{DEGREE SIGN}'
if TempProbePresent == 0:
self.text = "--" + u'\N{DEGREE SIGN}'
if clocktheme != 2:
self.text = " "
if TEMPON == 0:
self.text = " "
self.font_size = 30
self.pos = (354,140)
评论列表
文章目录