Exemplo n.º 1
0
width = t.width
def tod():
    currentTime = datetime.datetime.now()
    if currentTime.hour < 12:
        return "morning"
    elif currentTime.hour < 18:
        return "afternoon"
    else: 
        return "evening"

def say(msg):
    return os.system("say '"+ msg + "'")


with t.location(20, 20):
    print(t.cyan_bold("Good "+ tod() +"."))
    say("Good "+tod())
# sleep(2)
with t.location(20, 20):
    t.clear
    print(t.cyan_bold("How are you feeling today?"))
# os.system("say \"How are you feeling today?\"")
    say("How are you feeling today?")
with t.location(20, 21):

    feel = input()
    
    
with t.location(20, 20):
    
    t.clear()