| 45 | from .toolbox_siemens import PLCSiemens, SiemensButton, BitStatusWidget, WordEditWidget, ByteViewWidget |
| 46 | except Exception: |
| 47 | class SIEMENSPlaceholder(gui.Label): |
| 48 | icon = default_icon("missing SIEMENS") |
| 49 | def __init__(self, msg="In order to use Siemens widgets install python-snap7 \n" + traceback.format_exc()): |
| 50 | super(SIEMENSPlaceholder, self).__init__(msg) |
| 51 | self.css_white_space = 'pre' |
nothing calls this directly
no test coverage detected