-
Notifications
You must be signed in to change notification settings - Fork 148
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
Synchronous spinner #47
Comments
How about this way? I think it can do what you want. with Halo(spinner='dots') as spinner:
for f in files_to_load():
spinner.text = 'Loading {}'.format(f)
do_load_file(f) |
This isn't a bad solution, however, it doesn't work if there is nothing like a filename to show and I still want the spinner to be updated once a loop. |
@steelman Thanks for opening this. Could you add an example to your second comment? |
Tough question. Nothing in particular comes to my mind, so let my try theoretic cases.
|
@steelman I'm getting what you're saying. See, this is what |
At this moment halo satisfies my needs so, most probably, I won't develop any solution to the problem I described. However, I imagine, you may want to keep this issue open, so if anybody comes looking for an inspiration for a contribution, they will find one. |
Happy to update #132 and check it still works, if the feature might still be of interest @manrajgrover? |
Support synchronous spinners which switch frames upon explicit request from a working thread like.
This can (as far as I understand) be achieved with .frame() but isn't as concise as the above. Possibly don't render new frame more often than interval.
The text was updated successfully, but these errors were encountered: