diff --git a/src/superqt/collapsible/_collapsible.py b/src/superqt/collapsible/_collapsible.py index 89d85510..ea3d153d 100644 --- a/src/superqt/collapsible/_collapsible.py +++ b/src/superqt/collapsible/_collapsible.py @@ -66,6 +66,10 @@ def __init__( _content.layout().setContentsMargins(QMargins(5, 0, 0, 0)) self.setContent(_content) + def toggleButton(self) -> QPushButton: + """Return the toggle button.""" + return self._toggle_btn + def setText(self, text: str) -> None: """Set the text of the toggle button.""" self._toggle_btn.setText(text)