Skip to content

Commit

Permalink
Fix issue passing parent to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jan 26, 2024
1 parent e767a90 commit ff1b8ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/silx/gui/plot/items/_roi_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ def __init__(self, parent=None):
from ..tools import roi as roi_tools

assert parent is None or isinstance(parent, roi_tools.RegionOfInterestManager)
# Must be done before _RegionOfInterestBase.__init__
self._child = WeakList()
_RegionOfInterestBase.__init__(self, parent)
core.HighlightedMixIn.__init__(self)
self.__text = None
Expand All @@ -261,7 +263,6 @@ def __init__(self, parent=None):
self._selectable = False
self._focusProxy = None
self._visible = True
self._child = WeakList()

def _connectToPlot(self, plot):
"""Called after connection to a plot"""
Expand Down

0 comments on commit ff1b8ed

Please sign in to comment.