Commit e7fa90e1 authored by Thomas Vincent's avatar Thomas Vincent
Browse files

avoid silx 0.13.0 PlotWidget.removeItem deprecation warning

parent 81e7611f
...@@ -133,7 +133,7 @@ class RoiItemBase(qt.QObject): ...@@ -133,7 +133,7 @@ class RoiItemBase(qt.QObject):
for item in self._handles: for item in self._handles:
self._plot.removeMarker(item) self._plot.removeMarker(item)
if shape: if shape:
self._plot.removeItem(self._name) self._plot.remove(self._name, kind="item")
def _interactiveModeChanged(self, source): def _interactiveModeChanged(self, source):
if source is not self or source is not self.parent(): if source is not self or source is not self.parent():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment