Skip to content

Commit

Permalink
feat: make toggle button public in QCollapsible (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Mar 6, 2024
1 parent 60188de commit 56f65ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/superqt/collapsible/_collapsible.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56f65ff

Please sign in to comment.