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