Skip to content

add classes for direct uses #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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