Skip to content
Discussion options

You must be logged in to vote

What I ended up doing in terms of coupling...

  • Implement unidirectional data flow within the TUI side, attributes down, messages up.
  • Only the main application is allowed to communicate with the non-TUI, source-of-truth, data manipulating side
  • Main app and the non-TUI modules store reciprocal references to each other to enable coupling
  • Main app talks to non-TUI modules by calling their methods (as it happens they're async so via asyncio tasks)
  • Non-TUI modules communicate with main app by writing to main app's reactive attributes.
  • Data binding links main app reactive attributes to child widget reactive attributes as necessary; a watcher handles a few cases where it makes sense for the main …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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 aaronrudkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants