Commit 481e0955 authored by payno's avatar payno

[gui][roiselector] remove warning since silx requires >= 0.12 roi setLabel is replaced by setName

parent 1701199d
......@@ -60,7 +60,7 @@ class ROISelector(qt.QWidget):
# Add a rectangular region of interest
self._roi = RectangleROI()
self._roi.setGeometry(origin=(0, 0), size=(2, 2))
self.__roi_first_definition = True
"""flag used make sure the roi is clearly visible at least during the
......@@ -98,7 +98,7 @@ class ROISelector(qt.QWidget):
def updateAddedRegionOfInterest(self, roi):
"""Called for each added region of interest: set the name"""
if roi.getLabel() == '':
roi.setLabel('ROI %d' % len(self._roiManager.getRois()))
roi.setName('ROI %d' % len(self._roiManager.getRois()))
def setROI(self, origin, size):
self._roi.setGeometry(origin=origin, size=size)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment