def __init__(self, roi: Roi, enable_context: bool = True, **kwargs): AbstractRoiWidget.__init__(self, roi, enable_context=enable_context, **kwargs) LinearRegionItem.__init__(self) self.sigRegionChanged.connect(self.roi_is_moving) self.update_roi() if App().debug_tracker: App().debug_tracker.add_object(self, roi.name)
def __init__(self, value: RoiParameters, *args, **kwargs): AbstractROI.__init__(self, value) LinearRegionItem.__init__(self, *args, **kwargs) self.sigRegionChanged.connect(self.roi_is_moving) self.init_roi()