You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding some initial TabPanes to a TabbedContent widget works fine. Clearing the panes and adding new ones works, but the new panes are "hidden" . You can see their titles, but the contents of the panes is not shown until you click on the title of the pane.
Note that this occurs whether on_button_pressed() is async or not. The difference between the two is that when you have it async, the contents of the new pane will appear if you keep clicking the update button repeatedly. The first click will clear it and nothing will show until you click the tab. However, if you click the button a second time, the new pane's contents will appear.
If you click it a third time, the new panes contents will be hidden again until you click the tab itself or you click the button to refresh again.
The bug
Adding some initial TabPanes to a
TabbedContent
widget works fine. Clearing the panes and adding new ones works, but the new panes are "hidden" . You can see their titles, but the contents of the panes is not shown until you click on the title of the pane.Code example:
Note that this occurs whether
on_button_pressed()
is async or not. The difference between the two is that when you have it async, the contents of the new pane will appear if you keep clicking the update button repeatedly. The first click will clear it and nothing will show until you click the tab. However, if you click the button a second time, the new pane's contents will appear.If you click it a third time, the new panes contents will be hidden again until you click the tab itself or you click the button to refresh again.
Textual Diagnose Output
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Feel free to add screenshots and / or videos. These can be very helpful!
The text was updated successfully, but these errors were encountered: