Source code for RsAreg800.Implementations.Display.Ukey

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

# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class UkeyCls: """Ukey commands group definition. 3 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ukey", core, parent) @property def add(self): """add commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_add'): from .Add import AddCls self._add = AddCls(self._core, self._cmd_group) return self._add
[docs] def set_name(self, name: str) -> None: """SCPI: DISPlay:UKEY:NAME \n Snippet: driver.display.ukey.set_name(name = 'abc') \n No command help available \n :param name: No help available """ param = Conversions.value_to_quoted_str(name)'DISPlay:UKEY:NAME {param}')
[docs] def set_scpi(self, scpi: str) -> None: """SCPI: DISPlay:UKEY:SCPI \n Snippet: driver.display.ukey.set_scpi(scpi = 'abc') \n No command help available \n :param scpi: No help available """ param = Conversions.value_to_quoted_str(scpi)'DISPlay:UKEY:SCPI {param}')
def clone(self) -> 'UkeyCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = UkeyCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group