TMSiFrontend.components.channel_component.ChannelComponent.__init__#
- ChannelComponent.__init__(index, layout, widget, connect_chb=None, checked_state=True, connect_offset=None, offset_value=0, connect_scale=None, scale_value=100, connect_combo=None, name='Channel component')#
Initialization of ChannelComponent
- Parameters:
index (int) – channel index
layout (Q*Layout) – parent layout where it lays
widget (QWidget) – Widget where it lays
connect_chb (function, optional) – action to be triggered when clicking on enabled/disabled checkbox, defaults to None
checked_state (bool, optional) – initial state of the checkbox (enabled or disabled), defaults to True
connect_offset (function, optional) – action to be triggered when changing offset, defaults to None
offset_value (float, optional) – initial offset value, defaults to 0
connect_scale (function, optional) – action to be triggered when changing scale, defaults to None
scale_value (float, optional) – initial scale value, defaults to 100
connect_combo (function, optional) – action to be triggered when changing color, defaults to None
name (str, optional) – name, defaults to “Channel component”