-
Notifications
You must be signed in to change notification settings - Fork 788
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
Placeholder cycle per app #2590
Comments
We already have |
Sure |
You might be able to do this with a WeakKeySet where the keys are apps. Just a thought. |
Thanks. I was doing it with a standard dictionary with app IDs as keys. |
That would work. Downside is that the app IDs wouldn't be removed when the app is deleted. |
But that's also a marginal issue, no? |
It's unlikely to be an issue, sure. But its not much more work to do the weak dict. May as well? |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
The placeholder stores the current color in a classvar.
This means that a second app will start where the previous app left off. And may return a different color from the first iteration.
Not much of an issue in practice, but in the docs the colors change every screenshot. I think we need a separate cycle per app. Suggest we have an independent sequence for each app instance.
The text was updated successfully, but these errors were encountered: