i have recently come across the print(str, end="\r")
in python 3.8, and find it pairs well for a terminal style GUI if you don't want to learn/use a GUI import. One problem i have found is that you cant use this to overprint multiple lines in order in the way that I am using it.
asdf = 1
spin = ""
spin1 = ""
spin2 = ""
spin3 = ""
spin4 = ""
import time
while 1 != 2:
if asdf > 4:
asdf = 1
if asdf == 1:
spin = ("............/.........")
spin1 =(".........../..........")
spin2 =("..........X...........")
spin3 =("........./............")
spin4 =("......../.............")
if asdf == 2:
spin = ("......................")
spin1 =("......................")
spin2 =("....------+------.....")
spin3 =("......................")
spin4 =("......................")
if asdf == 3:
spin = ("........\.............")
spin1 =(".........\............")
spin2 =("..........X...........")
spin3 =("...........\..........")
spin4 =("............\.........")
if asdf == 4:
spin = ("..........|...........")
spin1 =("..........|...........")
spin2 =("..........+...........")
spin3 =("..........|...........")
spin4 =("..........|...........")
print(spin, end="\r")
print("")
print(spin1, end="\r")
print("")
print(spin2, end="\r")
print("")
print(spin3, end="\r")
print("")
print(spin4, end="\r")
(asdf) = (asdf) + (1)
time.sleep(1)
could someone help me