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

Method __init__

editor/widgets/toolbox_siemens.py:78–95  ·  view source on GitHub ↗
(self, ip_address='', rack=0, slot=3, update_interval=1.0, *args, **kwargs)

Source from the content-addressed store, hash-verified

76 app_instance = None
77
78 def __init__(self, ip_address='', rack=0, slot=3, update_interval=1.0, *args, **kwargs):
79 self.__ip_address = ''
80 default_style = {'position':'absolute','left':'10px','top':'10px'}
81 default_style.update(kwargs.get('style',{}))
82 kwargs['style'] = default_style
83 kwargs['width'] = kwargs['style'].get('width', kwargs.get('width','23px'))
84 kwargs['height'] = kwargs['style'].get('height', kwargs.get('height','47px'))
85 super(PLCSiemens, self).__init__(self.icon, *args, **kwargs)
86 self.on_disconnected()
87 self._set_params()
88 self.__rack = rack
89 self.__slot = slot
90 if len(ip_address):
91 self.ip_address = ip_address
92 else:
93 self.__ip_address = ip_address
94 self.__update_interval = update_interval
95 self.check_connection_state()
96
97 def disconnect(self):
98 try:

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 4

on_disconnectedMethod · 0.95
_set_paramsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected