Storing state in App #4472
daddycocoaman
started this conversation in
Ideas
Replies: 1 comment
-
Agreed on this idea and the linked discussion. I settled on a similar simple solution, but also had the impluse to reach for a
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion references #4107. It was labeled as answered by the topic creator, but I think it fell short a little bit.
I think it might be useful to have a context dict class for the App (similar to how Typer/Click have one) with a function to request the type of the context item as well. For example:
Currently, you can add attributes to the App class you create, but accessing those attributes with type info from a Widget doesn't work because
self.app
returns anApp[object]
and not the created App class.Beta Was this translation helpful? Give feedback.
All reactions