Skip to content

Conversation

@linuxnico
Copy link

@linuxnico linuxnico commented May 30, 2023

i add a class for just use it.

declare a var of class
call var return the next char in list of spinner type

Example:

sp = Cli_spinner(type='pong')  # definition of a spinner  of type PONG
print(sp.types)  # return all types of spinner

while True:
   # sp.time var of interval
    time.sleep(sp.time/1000)  
    sys.stdout.write(str(sp)+'\r')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant