ChannelTable
ChannelTable
#
Bases: DataTableWidget
Table to edit a list of useq.Channels.
channelGroups() -> Mapping[str, Sequence[str]]
#
Return the current channel groups that can be selected in the table.
setChannelGroups(groups: Mapping[str, Sequence[str]] | None) -> None
#
setValue(value: Iterable[useq.Channel]) -> None
#
Set the current value of the table from an Iterable of useq.Channels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
Iterable[Channel]
|
An Iterable of useq.Channels. |
required |
value(exclude_unchecked: bool = True) -> tuple[useq.Channel, ...]
#
Return the current value of the table as a tuple of useq.Channels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exclude_unchecked
|
bool
|
Exclude unchecked rows, by default True |
True
|
Returns:
Type | Description |
---|---|
tuple[Channel, ...]
|
A tuple of useq.Channels. |
Example#
channel_table.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|