Replies: 2 comments 1 reply
-
Since it's just Python classes, can't you just take advantage of the fact that we have instance attributes? This is OOP at the core... Or use
|
Beta Was this translation helpful? Give feedback.
-
Any further development on this discussion? I really like Textual and would like to use it in my projects, however without clear handling of state if feels very limited. For example, I would like to use Textual in an application. It runs a thread that loads some data and saves it as a state. Next, I'd like Textual to take that state and render. What's the Textual's way to do that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So far, the examples on the README always take state data from something external (mouse over from some watcher, time from system clock, etc).
If I wanted my widget to print 1, 2, 3, 4, etc in a loop by storing some state variable, can we do that?
My use case is to store a renderable in the widget without the need to re-instantiate on every call to
Widget::render()
. Without this feature, Rich stuff like spinners and progress bars are very limited.Beta Was this translation helpful? Give feedback.
All reactions