Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *, logger=None):
#
self._logger = logger or get_logger(name=__name__)
#
super().__init__()
#
self._mutex = QMutex()
profile = True if 'HARVESTER_PROFILE' in os.environ else False
self._harvester_core = HarvesterCore(
profile=profile, logger=self._logger
)
self._iam = None # Image Acquisition Manager
self._widget_canvas = Canvas2D()
self._widget_canvas.create_native()
self._widget_canvas.native.setParent(self)
#
self._action_stop_image_acquisition = None
#
self._observer_widgets = []
#
self._widget_device_list = None
def __init__(self, *, vsync=True, logger=None):
#
self._logger = logger or get_logger(name='harvesters')
#
super().__init__()
#
self._mutex = QMutex()
profile = True if 'HARVESTER_PROFILE' in os.environ else False
self._harvester_core = HarvesterCore(
profile=profile, logger=self._logger
)
self._ia = None # Image Acquirer
#
self._widget_canvas = Canvas2D(vsync=vsync)
self._widget_canvas.create_native()
self._widget_canvas.native.setParent(self)
#
self._action_stop_image_acquisition = None
#
self._observer_widgets = []
#
def __init__(self):
#
super().__init__()
#
self._mutex = QMutex()
profile = True if 'HARVESTER_PROFILE' in os.environ else False
self._harvester_core = HarvesterCore(
frontend=self, profile=profile, parent=self
)
self._iam = None # Image Acquisition Manager
self._widget_canvas = Canvas()
self._widget_canvas.set_shaders() # Pass custom shares if needed.
self._widget_canvas.create_native()
self._widget_canvas.native.setParent(self)
#
self._action_stop_image_acquisition = None
#
self._observer_widgets = []
#