Source code for rsrtx.Implementations.Layout

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LayoutCls:
	"""
	| Commands in total: 45
	| Subgroups: 4
	| Direct child commands: 2
	"""

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

	@property
	def add(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_add'):
			from .Add import AddCls
			self._add = AddCls(self._core, self._cmd_group)
		return self._add

	@property
	def histogram(self):
		"""
		| Commands in total: 16
		| Subgroups: 5
		| Direct child commands: 3
		"""
		if not hasattr(self, '_histogram'):
			from .Histogram import HistogramCls
			self._histogram = HistogramCls(self._core, self._cmd_group)
		return self._histogram

	@property
	def signal(self):
		"""
		| Commands in total: 3
		| Subgroups: 2
		| Direct child commands: 1
		"""
		if not hasattr(self, '_signal'):
			from .Signal import SignalCls
			self._signal = SignalCls(self._core, self._cmd_group)
		return self._signal

	@property
	def zoom(self):
		"""
		| Commands in total: 23
		| Subgroups: 5
		| Direct child commands: 2
		"""
		if not hasattr(self, '_zoom'):
			from .Zoom import ZoomCls
			self._zoom = ZoomCls(self._core, self._cmd_group)
		return self._zoom

[docs] def set_remove(self, diagram_name: str) -> None: """ ``LAYout:REMove`` \n Snippet: ``driver.layout.set_remove(diagram_name = 'abc')`` \n Closes the specified diagram. The waveforms are displayed as minimized waveforms in their signal icons on the signal bar. :param diagram_name: String with the name of the diagram """ param = Conversions.value_to_quoted_str(diagram_name) self._core.io.write_with_opc(f'LAYout:REMove {param}')
[docs] def set_show(self, diagram_name: str) -> None: """ ``LAYout:SHOW`` \n Snippet: ``driver.layout.set_show(diagram_name = 'abc')`` \n Selects the specified diagram. :param diagram_name: String with the name of the diagram """ param = Conversions.value_to_quoted_str(diagram_name) self._core.io.write_with_opc(f'LAYout:SHOW {param}')
def clone(self) -> 'LayoutCls': """ 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 = LayoutCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group