Skip to content
Discussion options

You must be logged in to vote

Thanks for the clear example of the issue here @TomJGooding. I think the core issue here is the clearing of the content followed right away by the adding of new panes. Given that both clear_panes and add_pane are awaitable things are getting rather confused.

With these changes to your code it seems to work as I think it's supposed to be working (I'll admit I'm a little unclear as to exactly what it's supposed to be doing):

--- tom_mre_orig.py	2023-09-05 20:00:38
+++ tom_mre.py	2023-09-05 19:58:34
@@ -31,15 +31,15 @@
             yield TabbedContent()
             yield SelectionList[str]()
 
-    def on_mount(self) -> None:
+    async def on_mount(self) -> None:
         user_selection = …

Replies: 2 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
3 replies
@TomJGooding
Comment options

@MohamedElgamal
Comment options

@davep
Comment options

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