Source code for rsrtx.Implementations.Display.Signal.Label.Remove

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RemoveCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("remove", core, parent)

[docs] def set(self, label_id: str, source: enums.SignalSource) -> None: """ ``DISPlay:SIGNal:LABel:REMove`` \n Snippet: ``driver.display.signal.label.remove.set(label_id = 'abc', source = enums.SignalSource.AJ1)`` \n Deletes the specifies waveform label. :param label_id: String with the label identifier. :param source: All waveforms that can be displayed, see method ``RsRtx.display.signal.label.add()`` """ param = ArgSingleList().compose_cmd_string(ArgSingle('label_id', label_id, DataType.String), ArgSingle('source', source, DataType.Enum, enums.SignalSource)) self._core.io.write_with_opc(f'DISPlay:SIGNal:LABel:REMove {param}'.rstrip())