Source code for RsFsw.Implementations.Applications.K149_Uwb.Layout.Select

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


# 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, selected_layout: int) -> None: """ ``LAYout:SELect`` \n Snippet: ``driver.applications.k149Uwb.layout.select.set(selected_layout = 1)`` \n Sets and queries the window layout. The layout number increases with a new release of the FSW-K149 application, if a new default layout is defined. This ensures backwards compatibility for scripts that were created using a different layout in a previous version of the application. """ param = Conversions.decimal_value_to_str(selected_layout) self._core.io.write_with_opc(f'LAYout:SELect {param}')
[docs] def get(self) -> int: """ ``LAYout:SELect`` \n Snippet: ``value: int = driver.applications.k149Uwb.layout.select.get()`` \n Sets and queries the window layout. The layout number increases with a new release of the FSW-K149 application, if a new default layout is defined. This ensures backwards compatibility for scripts that were created using a different layout in a previous version of the application. """ response = self._core.io.query_str_with_opc(f'LAYout:SELect?') return Conversions.str_to_int(response)