My idea was to insert a line of slow-moving text into a set of printed text after the printed text had finished printing out.
So for example:
@@@@@@@@@@@@@@
@ SlowText @
@@@@@@@@@@@@@@
The border would be printed out immediately and then the SlowText would appear after a short period, writing out slowly.
I've tried a couple of different slow-moving text snippets to perform the actual writing. like:
def print_slow(txt):
for x in txt:
print(x, end='', flush=True)
sleep(0.1)
and
def insertedtext():
text = " E..n..j..o..y..."
for character in text:
sys.stdout.write(character)
sys.stdout.flush()
time.sleep(0.05)
I've tried using '#'+ words + '#'
, tried throwing another print("words")
in there. Heck, I even attemped at making it a variable but since I am quite new to Python I just can seem to figure it out or google it correctly enough to find it on my own. Any/all help appricated.