how to remove all children of a TabbedContent #5299
-
In my application, I do the following:
this automatically seems to create a default
There seems to be the Is it possible to remove (completely delete) all of a Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hopefully that |
Beta Was this translation helpful? Give feedback.
-
Are you awaiting |
Beta Was this translation helpful? Give feedback.
Things that involve modifying the DOM don't happen immediately. If you want to ensure that
clear_panes
is finished, you will need to make your method a coroutine (async def my_method(self):
), andawait
the result.i.e. If you do this, it will ensure all panes are cleared before you add new ones.
If you do that, I don't think the issue @TomJGooding linked to will apply.