How to store state in App? #4107
Answered
by
davep
chbndrhnns
asked this question in
Q&A
-
Is there a good place to store context or state within a textual app? |
Beta Was this translation helpful? Give feedback.
Answered by
davep
Feb 4, 2024
Replies: 1 comment 5 replies
-
This question is so broad it is difficult to offer any meaningful or practical advice. Could you try narrowing down your question, perhaps with a simple example? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your app is simply a Python class, so you can "declare" that attribute as you generally would with any other Python class: create/assign/type the attribute in
__init__
(just like you did in yourState
class).