Skip to content
Discussion options

You must be logged in to vote

You may find that the answer I gave in #2559 will be helpful with this too.

To directly answer the question here though: the best thing to do is to post the message to the screen or widget that is interested in it; don't post it to the screen that's about the be popped. So something more like:

self.app.screen.post_message(LogMessage("Logged Out"))
self.app.pop_screen()

As it is though, the callback system mentioned in the other similar question you asked is likely going to be a more satisfying approach.

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
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