MCPcopy Index your code
hub / github.com/rawpython/remi / __init__

Method __init__

editor/widgets/toolbox_EPICS.py:234–246  ·  view source on GitHub ↗
(self, epics_pv_name='', max_values_count=100, *args, **kwargs)

Source from the content-addressed store, hash-verified

232 self.values.maxlen = int(value)
233
234 def __init__(self, epics_pv_name='', max_values_count=100, *args, **kwargs):
235 w = kwargs.get("style", {}).get("width", kwargs.get("width", 100))
236 h = kwargs.get("style", {}).get("height", kwargs.get("height", 100))
237 if 'width' in kwargs.keys():
238 del kwargs["width"]
239 if 'height' in kwargs.keys():
240 del kwargs["height"]
241 default_style = {'position':'absolute','left':'10px','top':'10px', 'overflow':'hidden', 'background-color':'lightgray', 'margin':'10px'}
242 default_style.update(kwargs.get('style',{}))
243 kwargs['style'] = default_style
244 super(EPICSPlotPV, self).__init__(w, h, *args, **kwargs)
245 self.values = gui.SvgPolyline(max_values_count)
246 self.epics_pv_name = epics_pv_name
247
248 def set_value(self, value):
249 if not self.get_app_instance():

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected