Skip to content

Conversation

@tytgatlieven
Copy link

@tytgatlieven tytgatlieven commented Dec 23, 2025

…abs`

Description of the problem

Removing a widget from the tab required insight into the internal working of MDTabsPrimary.

Description of Changes

Implemented remove_widget. This widget can receive an MDTabsItem as well as the related_content widget and will correctly remove the MDTabsItem and the related_content

Screenshots of the solution to the problem

Screencast_20251223_111512.webm

Code for testing new changes

An app for manual testing has been added into kivymd/tests/tab/add_remove_tab.py
I do realise this should ideally be a pytest, but do not have experience how to really automate gui testing.

@tytgatlieven tytgatlieven marked this pull request as ready for review December 23, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant