(self, *args)
| 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 | |
| 372 | class BitStatusWidget(HBox, SiemensWidget, _Mixin_DB_property, _Mixin_Byte_property, _Mixin_Bit_property): |
no test coverage detected