code.py
def showDuration(num, color):
    """
    control text_color and text position based on the digits
    set_text_color method is available, but there is no
    set_text_position...
    so 3 labels are prepared and select one of them with digits of the number.
    non use labels are invisible with blank text
    """
    labels = [lb_away_min1, lb_away_min2, lb_away_min3]
    if num < 10:
        digits = 1
    elif num < 100:
        digits = 2
    else:
        digits = 3

    for i in range(3):
        if digits == i + 1:
            funhouse.set_text(num, labels[i])
            funhouse.set_text_color(color, labels[i])
        else:
            funhouse.set_text("", labels[i])

    control text_color and text position based on the digits
    set_text_color method is available, but there is no
    set_text_position...
    so 3 labels are prepared and select one of them with digits of the number.
    non use labels are invisible with blank text
    
control text_color and text position based on the digits
set_text_color method is available, but there is no
set_text_position
so 3 labels are prepared and select one of them with digits of the number.
non use labels are invisible with blank text
control text_color and text position based on the digits set_text_color method is available but there is no set_text_position so 3 labels are prepared and select one of them with digits of the number . non use labels are invisible with blank text
def showDuration(num, color):
    labels = [lb_away_min1, lb_away_min2, lb_away_min3]
    if num < 10:
        digits = 1
    elif num < 100:
        digits = 2
    else:
        digits = 3
    for i in range(3):
        if digits == i + 1:
            funhouse.set_text(num, labels[i])
            funhouse.set_text_color(color, labels[i])
        else:
            funhouse.set_text("", labels[i])
def showDuration ( num , color ) : labels = [ lb_away_min1 , lb_away_min2 , lb_away_min3 ] if num < 10 : digits = 1 elif num < 100 : digits = 2 else : digits = 3 for i in range ( 3 ) : if digits == i + 1 : funhouse . set_text ( num , labels [ i ] ) funhouse . set_text_color ( color , labels [ i ] ) else : funhouse . set_text ( "" , labels [ i ] )
control text_color and text position based on the digits
set_text_color method is available, but there is no
set_text_position...
so 3 labels are prepared and select one of them with digits of the number.
control text_color and text position based on the digits set_text_color method is available but there is no set_text_position ... so 3 labels are prepared and select one of them with digits of the number .
"""
    control text_color and text position based on the digits
    set_text_color method is available, but there is no
    set_text_position...
    so 3 labels are prepared and select one of them with digits of the number.
    non use labels are invisible with blank text
    """
num
color