mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
fix(image_roi): rois are invertible by default, fixes resizing bug when adding from ROI manager
This commit is contained in:
@ -150,7 +150,12 @@ class BaseROI(BECConnector):
|
|||||||
self.parent_plot_item = parent_image.plot_item
|
self.parent_plot_item = parent_image.plot_item
|
||||||
object_name = label.replace("-", "_").replace(" ", "_") if label else None
|
object_name = label.replace("-", "_").replace(" ", "_") if label else None
|
||||||
super().__init__(
|
super().__init__(
|
||||||
object_name=object_name, config=config, gui_id=gui_id, removable=True, **pg_kwargs
|
object_name=object_name,
|
||||||
|
config=config,
|
||||||
|
gui_id=gui_id,
|
||||||
|
removable=True,
|
||||||
|
invertible=True,
|
||||||
|
**pg_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._label = label or "ROI"
|
self._label = label or "ROI"
|
||||||
|
Reference in New Issue
Block a user