Skip to content
Discussion options

You must be logged in to vote

As you'll have noticed, there's no builtin method of doing this and what you've got there looks like a good approach (I might personally be tempted to wrap it up in a class of its own, depending on how often it'd be used and in how many apps, but the core idea looks sound to me).

As Textual stands right now the more "Textuallly" method of doing it would be to use Screens; so if you have some sort of modal action that you want on top of your main screen, etc, you'd implement that in a Screen, push that onto the screen stack, and then pop it back off when done.

As a simple illustration of this, see the help screen in the Five by Five example -- the main game grid there is done as buttons, a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jspv
Comment options

@davep
Comment options

Answer selected by jspv
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