Exemple #1
0
def demo_unicode():
    scr.clear_screen()

    while True:
        a = scr.check_key()
        if a:
            break
        scr.clear_screen()
        scr.printf(u'╭o╮')
        sleep(0.3)
        scr.clear_screen()
        scr.printf(u'╰o╯')
        sleep(0.3)
def my_program():

    clear_screen()

    printf()
    printf("EXPONENTIAL TABLE", color=4)
    printf("=================")

    number = 0
    while True:
        result = 2 ** number
        msg = "2^{} = {}".format(number, result)
        printf(msg)
        wait_time.sleep(0.1)
        if number == 20:
            break
        number = number + 1
Exemple #3
0
def my_program():

    clear_screen()

    printf()
    printf('SQUARES TABLE', color=4)
    printf('==============')

    number = 0
    while True:
        result = number ** 2
        msg = '{}^2 = {}'.format(number, result)
        printf(msg)
        wait_time.sleep(0.1)
        if number == 20:
            break
        number = number +1
Exemple #4
0
def demo_unicode_move():
    scr.clear_screen()
    i = 0
    while i < 20:
        a = scr.check_key()
        if a:
            break
        espacio=' '*i
        i=i+1
        scr.clear_screen()
        scr.printf(espacio + u'╭o╮')
        sleep(0.3)
        scr.clear_screen()
        espacio=' '*i
        i=i+1
        scr.printf(espacio + u'╰o╯')
        sleep(0.3)