Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Fdomain.Wsettings.Auto

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


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

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

[docs] def set(self, state: bool) -> None: """ ``CONFigure:FDOMain:WSETtings:AUTO`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.fdomain.wsettings.auto.set(state = False)`` \n Sets the window settings mode on or off. :param state: ON | OFF | 1 | 0 ON | 1 Sets the window settings mode on. OFF | 0 Sets the window settings mode off. """ param = Conversions.bool_to_str(state) self._core.io.write(f'CONFigure:FDOMain:WSETtings:AUTO {param}')
[docs] def get(self) -> bool: """ ``CONFigure:FDOMain:WSETtings:AUTO`` \n Snippet: ``value: bool = driver.applications.k18AmplifierEt.configure.fdomain.wsettings.auto.get()`` \n Sets the window settings mode on or off. :return: state: ON | OFF | 1 | 0 ON | 1 Sets the window settings mode on. OFF | 0 Sets the window settings mode off. """ response = self._core.io.query_str(f'CONFigure:FDOMain:WSETtings:AUTO?') return Conversions.str_to_bool(response)