feat: make toggle button public in QCollapsible (#232)

This commit is contained in:
Talley Lambert
2024-03-06 15:27:56 -05:00
committed by GitHub
parent 60188de52e
commit 56f65ff123

View File

@@ -66,6 +66,10 @@ class QCollapsible(QFrame):
_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)