diff --git a/brainglobe_utils/qtpy/collapsible_widget.py b/brainglobe_utils/qtpy/collapsible_widget.py index feeab84..ee22bd4 100644 --- a/brainglobe_utils/qtpy/collapsible_widget.py +++ b/brainglobe_utils/qtpy/collapsible_widget.py @@ -29,6 +29,8 @@ def __init__( self, title: str = "", parent: Optional[QWidget] = None, + expanded_icon: Optional[str] = "▼", + collapsed_icon: Optional[str] = "▶", ): """ Initializes a new CollapsibleWidget instance. @@ -40,7 +42,12 @@ def __init__( parent : QWidget or None, optional The parent widget. """ - super().__init__(title, parent) + super().__init__( + title, + parent, + expandedIcon=expanded_icon, + collapsedIcon=collapsed_icon, + ) self.currently_expanded = False self.toggled.connect(self._on_toggle)