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

Method __init__

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

Source from the content-addressed store, hash-verified

198 icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAOwgAADsIBFShKgAAAAG1JREFUWEft1qENgEAMQNEec6AwDMG4jIbC3QZAQuXhvijJf6aVP+mJa9cjiptylmYkxUiKkRQjKUZSjKQYSTGSMvyZt/3M7dux9dx487Lm9vLclP++yWo8N8VIipEUIylGUoykGEkxkmIkI+IGyZcQRHB9PC8AAAAASUVORK5CYII="
199
200 def __init__(self, epics_pv_name='', max_value=100, *args, **kwargs):
201 default_style = {'position':'absolute','left':'10px','top':'10px'}
202 default_style.update(kwargs.get('style',{}))
203 kwargs['style'] = default_style
204 kwargs['width'] = kwargs['style'].get('width', kwargs.get('width','100px'))
205 kwargs['height'] = kwargs['style'].get('height', kwargs.get('height','30px'))
206 super(EPICSValueMeterWidget, self).__init__(0, max_value,*args, **kwargs)
207 self.epics_pv_name = epics_pv_name
208
209 def set_value(self, value):
210 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