You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to select a "random spinner" each time a progress bar is instantiated.
Furthermore, since I will start "a couple of independent" progress bars - I'd prefer if I would have selected "spinners of the same width". f.e., right now, return random.choice([k for k, _ in rich._spinners.SPINNERS.items() if filter_key in k]) (for filter_key == "dots") is good enough - but I was wondering if there's a concept of "spinner width".
Could it be that len(v['frames'][0]) is enough for that sort of thing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to select a "random spinner" each time a progress bar is instantiated.
Furthermore, since I will start "a couple of independent" progress bars - I'd prefer if I would have selected "spinners of the same width". f.e., right now,
return random.choice([k for k, _ in rich._spinners.SPINNERS.items() if filter_key in k])
(forfilter_key == "dots"
) is good enough - but I was wondering if there's a concept of "spinner width".Could it be that
len(v['frames'][0])
is enough for that sort of thing?Beta Was this translation helpful? Give feedback.
All reactions