Esempio n. 1
0
def print_on_screen(text):
    text_entity = Text(
        # parent = camera.ui,
        text=str(text),
        position=window.top_left,
        origin=(-.5, .5),
        # scale = (.1, .1)
    )
    destroy(text_entity, 1)
Esempio n. 2
0
def print_on_screen(text,
                    position=window.top_left,
                    origin=(-.5, .5),
                    scale=1,
                    duration=1):
    text_entity = Text(text=text,
                       position=position,
                       origin=origin,
                       scale=scale)
    destroy(text_entity, delay=duration)