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

Method update

editor/widgets/toolbox_siemens.py:362–369  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

360 self.led.style.update({'background-color':self.color_active if self.led_status else self.color_inactive})
361
362 def update(self, *args):
363 #this method gets called by the plc_instance
364 if self.plc_instance==None:
365 return
366 if self.db_index<0 or self.byte_index<0 or self.bit_index<0:
367 return
368 value = self.plc_instance.get_bool(self.db_index, self.byte_index, self.bit_index)
369 self._set_value(value)
370
371
372class BitStatusWidget(HBox, SiemensWidget, _Mixin_DB_property, _Mixin_Byte_property, _Mixin_Bit_property):

Callers 8

__init__Method · 0.45
__init__Method · 0.45
_set_valueMethod · 0.45
__init__Method · 0.45
updateMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

_set_valueMethod · 0.95
get_boolMethod · 0.80

Tested by

no test coverage detected