code.py
def switchDisplayMode(mode):
    '''
    hide show labels for different modes
    '''
    if mode == 'waiting':
        funhouse.set_text("", lb_time_away)
        funhouse.set_text("", lb_min)
        funhouse.set_text("", lb_away_min1)
        funhouse.set_text("", lb_away_min2)
        funhouse.set_text("", lb_away_min3)
        funhouse.set_text("WAITING...", lb_waiting)
    elif mode == 'counting':
        funhouse.set_text("time away:", lb_time_away)
        funhouse.set_text("min", lb_min)
        funhouse.set_text("", lb_waiting)
    elif mode == 'bedtime':
        funhouse.set_text("", lb_time_away)
        funhouse.set_text("", lb_min)
        funhouse.set_text("", lb_away_min1)
        funhouse.set_text("", lb_away_min2)
        funhouse.set_text("Zzz...", lb_away_min3)
        funhouse.set_text_color(0x00AAEE, lb_away_min3)
        funhouse.set_text("", lb_waiting)

    hide show labels for different modes
    
hide show labels for different modes
hide show labels for different modes
def switchDisplayMode(mode):
    if mode == 'waiting':
        funhouse.set_text("", lb_time_away)
        funhouse.set_text("", lb_min)
        funhouse.set_text("", lb_away_min1)
        funhouse.set_text("", lb_away_min2)
        funhouse.set_text("", lb_away_min3)
        funhouse.set_text("WAITING...", lb_waiting)
    elif mode == 'counting':
        funhouse.set_text("time away:", lb_time_away)
        funhouse.set_text("min", lb_min)
        funhouse.set_text("", lb_waiting)
    elif mode == 'bedtime':
        funhouse.set_text("", lb_time_away)
        funhouse.set_text("", lb_min)
        funhouse.set_text("", lb_away_min1)
        funhouse.set_text("", lb_away_min2)
        funhouse.set_text("Zzz...", lb_away_min3)
        funhouse.set_text_color(0x00AAEE, lb_away_min3)
        funhouse.set_text("", lb_waiting)
def switchDisplayMode ( mode ) : if mode == 'waiting' : funhouse . set_text ( "" , lb_time_away ) funhouse . set_text ( "" , lb_min ) funhouse . set_text ( "" , lb_away_min1 ) funhouse . set_text ( "" , lb_away_min2 ) funhouse . set_text ( "" , lb_away_min3 ) funhouse . set_text ( "WAITING..." , lb_waiting ) elif mode == 'counting' : funhouse . set_text ( "time away:" , lb_time_away ) funhouse . set_text ( "min" , lb_min ) funhouse . set_text ( "" , lb_waiting ) elif mode == 'bedtime' : funhouse . set_text ( "" , lb_time_away ) funhouse . set_text ( "" , lb_min ) funhouse . set_text ( "" , lb_away_min1 ) funhouse . set_text ( "" , lb_away_min2 ) funhouse . set_text ( "Zzz..." , lb_away_min3 ) funhouse . set_text_color ( 0x00AAEE , lb_away_min3 ) funhouse . set_text ( "" , lb_waiting )
hide show labels for different modes
hide show labels for different modes
'''
    hide show labels for different modes
    '''
mode