Source code for RsFsw.Implementations.Applications.K10x_Lte.Display.Window.Tab.Select

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


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

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

[docs] def set(self, window=repcap.Window.Default, tab=repcap.Tab.Default) -> None: """ ``DISPlay[:WINDow<n>]:TAB<tab>:SELect`` \n Snippet: ``driver.applications.k10Xlte.display.window.tab.select.set(window = repcap.Window.Default, tab = repcap.Tab.Default)`` \n Selects a tab in diagrams with multiple subwindows (or views) . Note that selecting a tab does not actually select a subwindow. To select a subwindow, for example to query the results of a subwindow, use method ``RsFsw.applications.k10Xlte.display.window.subwindow.select.set()`` . :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Window') :param tab: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tab') """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) tab_cmd_val = self._cmd_group.get_repcap_cmd_value(tab, repcap.Tab) self._core.io.write(f'DISPlay:WINDow{window_cmd_val}:TAB{tab_cmd_val}:SELect')
[docs] def set_with_opc(self, window=repcap.Window.Default, tab=repcap.Tab.Default, opc_timeout_ms: int = -1) -> None: window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) tab_cmd_val = self._cmd_group.get_repcap_cmd_value(tab, repcap.Tab) """ ``DISPlay[:WINDow<n>]:TAB<tab>:SELect`` \n Snippet: ``driver.applications.k10Xlte.display.window.tab.select.set_with_opc(window = repcap.Window.Default, tab = repcap.Tab.Default)`` \n Selects a tab in diagrams with multiple subwindows (or views) . Note that selecting a tab does not actually select a subwindow. To select a subwindow, for example to query the results of a subwindow, use method ``RsFsw.applications.k10Xlte.display.window.subwindow.select.set()`` . Same as set, 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 tab: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tab') :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}:TAB{tab_cmd_val}:SELect', opc_timeout_ms)