Source code for RsFsw.Implementations.Display.Window.Subwindow.Notes

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ...... import repcap


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

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

	@property
	def text(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_text'):
			from .Text import TextCls
			self._text = TextCls(self._core, self._cmd_group)
		return self._text

	@property
	def append(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_append'):
			from .Append import AppendCls
			self._append = AppendCls(self._core, self._cmd_group)
		return self._append

[docs] def clear(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default) -> None: """ ``DISPlay[:WINDow<n>][:SUBWindow<w>]:NOTes:CLEar`` \n Snippet: ``driver.display.window.subwindow.notes.clear(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default)`` \n No help available :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow') """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:NOTes:CLEar')
[docs] def clear_with_opc(self, window=repcap.Window.Default, subWindow=repcap.SubWindow.Default, opc_timeout_ms: int = -1) -> None: window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) subWindow_cmd_val = self._cmd_group.get_repcap_cmd_value(subWindow, repcap.SubWindow) """ ``DISPlay[:WINDow<n>][:SUBWindow<w>]:NOTes:CLEar`` \n Snippet: ``driver.display.window.subwindow.notes.clear_with_opc(window = repcap.Window.Default, subWindow = repcap.SubWindow.Default)`` \n No help available Same as clear, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :param subWindow: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Subwindow') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'DISPlay:WINDow{window_cmd_val}:SUBWindow{subWindow_cmd_val}:NOTes:CLEar', opc_timeout_ms)
def clone(self) -> 'NotesCls': """ 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 = NotesCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group