Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@gui.editor_attribute_decorator('WidgetSpecific','The alpha value', float, {'default':0, 'min':0, 'max':1.0, 'step':0.0001})
def alpha(self): return self.__alpha
@alpha.setter
@gui.editor_attribute_decorator('WidgetSpecific','The label text', str, {})
def text(self): return self.label.text
@text.setter
@gui.editor_attribute_decorator('WidgetSpecific','The filter iterations', int, {'possible_values': '', 'min': 0, 'max': 65535, 'default': 1, 'step': 1})
def iterations(self):
return self.__iterations
@iterations.setter
@gui.editor_attribute_decorator('WidgetSpecific','The contour retrieval mode parameter', 'DropDown', {'possible_values': contour_retrieval_mode.keys()})
def retrieval_mode(self):
return self.__retrieval_mode
@retrieval_mode.setter
@gui.editor_attribute_decorator('WidgetSpecific','The PV name', str, {})
def epics_pv_name(self): return self.__epics_pv_name
@epics_pv_name.setter
@gui.editor_attribute_decorator('WidgetSpecific','The conversion constant code', 'DropDown', {'possible_values': cvt_types.keys()})
def conversion_code(self):
return self.__conversion_code
@conversion_code.setter
@gui.editor_attribute_decorator('WidgetSpecific','The bit index in the byte as integer', int, {'possible_values': '', 'min': -1, 'max': 65535, 'default': 0, 'step': 1})
def bit_index(self): return self.__dict__.get('__bit_index', -1)
@bit_index.setter
@gui.editor_attribute_decorator('WidgetSpecific','The filter diameter', int, {'possible_values': '', 'min': 0, 'max': 65535, 'default': 1, 'step': 1})
def diameter(self):
return self.__diameter
@diameter.setter
@gui.editor_attribute_decorator('WidgetSpecific','Specifies if the button is toggle or must reset the value on release', bool, {})
def toggle(self): return self.__dict__.get('__toggle', None)
@toggle.setter
@gui.editor_attribute_decorator('WidgetSpecific','The filter border parameter', 'DropDown', {'possible_values': OpencvBilateralFilter.border_type.keys()})
def border(self):
return self.__border
@border.setter