Source code for RsFsw.Implementations.Applications.K91_Wlan.Layout.Remove.Window

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


# 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, window_name: str) -> None: """ ``LAYout:REMove[:WINDow]`` \n Snippet: ``driver.applications.k91Wlan.layout.remove.window.set(window_name = 'abc')`` \n Removes a window from the display in the active channel. :param window_name: String containing the name of the window. In the default state, the name of the window is its index. """ param = Conversions.value_to_quoted_str(window_name) self._core.io.write_with_opc(f'LAYout:REMove:WINDow {param}')
[docs] def get(self) -> str: """ ``LAYout:REMove[:WINDow]`` \n Snippet: ``value: str = driver.applications.k91Wlan.layout.remove.window.get()`` \n Removes a window from the display in the active channel. :return: window_name: String containing the name of the window. In the default state, the name of the window is its index. """ response = self._core.io.query_str_with_opc(f'LAYout:REMove:WINDow?') return trim_str_response(response)