Source code for RsFsw.Implementations.System.Display.Lock

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


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

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

[docs] def set(self, state: bool) -> None: """ ``SYSTem:DISPlay:LOCK`` \n Snippet: ``driver.system.display.lock.set(state = False)`` \n Defines whether the 'Display Update' function remains available in remote operation or not. :param state: ON | OFF | 0 | 1 OFF | 0 The function remains available. ON | 1 The function is not available and the display is not updated during remote operation. """ param = Conversions.bool_to_str(state) self._core.io.write(f'SYSTem:DISPlay:LOCK {param}')
[docs] def get(self) -> bool: """ ``SYSTem:DISPlay:LOCK`` \n Snippet: ``value: bool = driver.system.display.lock.get()`` \n Defines whether the 'Display Update' function remains available in remote operation or not. :return: state: ON | OFF | 0 | 1 OFF | 0 The function remains available. ON | 1 The function is not available and the display is not updated during remote operation. """ response = self._core.io.query_str(f'SYSTem:DISPlay:LOCK?') return Conversions.str_to_bool(response)