Skip to content
Discussion options

You must be logged in to vote

I guess I immediately found the problem, when publishing the discussion and read through my own question...

    def on_mount(self) -> None:
        self.push_screen("home")

    def action_refresh_screen(self) -> None:
        self.pop_screen()
        self.push_screen(HomeScreen())

During mount, I push the screen with the name as a string "home", as defined in SCREENS. By pressing ctrl+r I push the screen by it's class name: HomeScreen(). Changing it to the following, solves the problem:

    def on_mount(self) -> None:
        self.push_screen(HomeScreen())

    def action_refresh_screen(self) -> None:
        self.pop_screen()
        self.push_screen(HomeScreen())

Conclusion: I should …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by davep
Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants