Source code for RsFsw.Implementations.Applications.K60_Transient.Layout.Move.Window

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 WindowCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, source_window: str, target_window: str, direction: enums.WindowDirection) -> None: """ ``LAYout:MOVE[:WINDow]`` \n Snippet: ``driver.applications.k60Transient.layout.move.window.set(source_window = 'abc', target_window = 'abc', direction = enums.WindowDirection.ABOVe)`` \n No help available :param source_window: String containing the name of an existing window that is to be moved. By default, the name of a window is the same as its index. To determine the name and index of all active windows in the active channel, use the method ``RsFsw.layout.catalog.window.get()`` query. :param target_window: String containing the name of an existing window the selected window is placed next to or replaces. By default, the name of a window is the same as its index. To determine the name and index of all active windows in the active channel, use the method ``RsFsw.layout.catalog.window.get()`` query. :param direction: LEFT | RIGHt | ABOVe | BELow | REPLace Destination the selected window is moved to, relative to the reference window. """ param = ArgSingleList().compose_cmd_string(ArgSingle('source_window', source_window, DataType.String), ArgSingle('target_window', target_window, DataType.String), ArgSingle('direction', direction, DataType.Enum, enums.WindowDirection)) self._core.io.write_with_opc(f'LAYout:MOVE:WINDow {param}'.rstrip())