from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UpdateCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("update", core, parent)
[docs]
def get_hold(self) -> bool:
"""
``DISPlay:UPDate:HOLD`` \n
Snippet: ``value: bool = driver.display.update.get_hold()`` \n
No help available
"""
response = self._core.io.query_str('DISPlay:UPDate:HOLD?')
return Conversions.str_to_bool(response)
[docs]
def set_hold(self, hold: bool) -> None:
"""
``DISPlay:UPDate:HOLD`` \n
Snippet: ``driver.display.update.set_hold(hold = False)`` \n
No help available
"""
param = Conversions.bool_to_str(hold)
self._core.io.write(f'DISPlay:UPDate:HOLD {param}')
[docs]
def get_state(self) -> bool:
"""
``DISPlay:UPDate:[STATe]`` \n
Snippet: ``value: bool = driver.display.update.get_state()`` \n
Activates the refresh mode of the display.
:return: update: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('DISPlay:UPDate:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, update: bool) -> None:
"""
``DISPlay:UPDate:[STATe]`` \n
Snippet: ``driver.display.update.set_state(update = False)`` \n
Activates the refresh mode of the display.
:param update: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(update)
self._core.io.write(f'DISPlay:UPDate:STATe {param}')