-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support indexing and slicing #35
Comments
Good catch! Give me a day or two to find some spare time! If you'd want to implement it by yourself - I'm happy to review PRs 🎉 |
Great, thanks! Do you realize it's not that easy to implement? I'm currently busy with my progress bar, but I will contribute in another time, thank you! |
Yeah, that's what I figured ... let's see if that's possible some how ;) |
I've just released an alpha release v0.6.0a1 which supports the basics of indexing and slicing. Could you please verify if that implementation if enough for your project? |
Wow, that was fast! Thank you. |
Hey, it seems to be working real nice!
|
I got another of the same error with disable:
ps.: testing with python 2.7 to be more restrictive, it probably works in 3.7. |
Oh yes, my mistake! I'm sorry for that. Unfortunately it is still missing something, but I'm not sure what.
So, I've generated blocks of each character, with a certain gap between them. But with a colorful string, I get:
So maybe the |
Also, I think I need object.reversed, as I use
|
I'll have a look at the first problem.
Reversing the string could be a little harder ... Do you need the coloring there? If not you could just access the original string of the ColorfulString object and reverse that - as a workaround at least. |
Hey, yes I do need color in reverse strings... Regarding the first issue, I think it's just the iter missing, which should return Do you think it's doable? |
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Hello @timofurrer, how are you? Hey, there's someone interested in helping me with this coloring, maybe he could help you here too! |
As I explained in my issue there:
|
Hello,
You say in the readme that:
But it seems it does not support basic indexing or slicing:
Could you please fix or implement it?
I need this kind of functionality to be able to support colors in my progress bar project. I was wondering if I'd implement colorizing and len and indexing and slicing myself, but thankfully found this project of yours, it is missing little to fit my need perfectly. Thanks.
My project is in: https://github.com/rsalmei/alive-progress

The text was updated successfully, but these errors were encountered: