Skip to content
Discussion options

You must be logged in to vote

This is addressed in the example app in the tests directory. It's called taskflow.py and has supporting files in the taskflow_app folder.

Essentially, you make a ui.Frame instance which has a layout. When you want to update the visible ui, you clear that Frame's layout and then add new versions of the children you want to see in that Frame. This involves various states, bind_tos, and subscribes. As I said, see the code for the taskflow app.

PS - The tasks in the app have a Boolean attribute called "completed", the appearance of the task varies depending on whether the task has been completed, but there is no way, via the ui, to change that status. I guess that's an exercise for the reader.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cdamundsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant