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

Method set_value

editor/widgets/toolbox_EPICS.py:133–139  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

131 self.epics_pv.put(0)
132
133 def set_value(self, value):
134 if not self.get_app_instance():
135 return
136 with self.get_app_instance().update_lock:
137 #this function gets called when the camonitor notifies a change on the PV
138 self.led_status = float(value)>0.0
139 self.led.style.update({'background-color':self.color_active if self.led_status else self.color_inactive})
140
141
142class EPICSLed(HBox, EPICSWidget):

Callers

nothing calls this directly

Calls 2

get_app_instanceMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected