Source code for RsFsw.Implementations.HardCopy.Treport.Test.Select

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectCls:
	"""
	| Commands in total: 4
	| Subgroups: 3
	| Direct child commands: 1
	"""

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

	@property
	def all(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_all'):
			from .All import AllCls
			self._all = AllCls(self._core, self._cmd_group)
		return self._all

	@property
	def nonePy(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_nonePy'):
			from .NonePy import NonePyCls
			self._nonePy = NonePyCls(self._core, self._cmd_group)
		return self._nonePy

	@property
	def invert(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_invert'):
			from .Invert import InvertCls
			self._invert = InvertCls(self._core, self._cmd_group)
		return self._invert

[docs] def set(self, selection: float, state: bool) -> None: """ ``HCOPy:TREPort:TEST:SELect`` \n Snippet: ``driver.hardCopy.treport.test.select.set(selection = 1.0, state = False)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('selection', selection, DataType.Float), ArgSingle('state', state, DataType.Boolean)) self._core.io.write(f'HCOPy:TREPort:TEST:SELect {param}'.rstrip())
def clone(self) -> 'SelectCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = SelectCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group