Source code for RsFswp.Implementations.HardCopy.Treport.Item.Logo

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class LogoCls: """Logo commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("logo", core, parent) @property def control(self): """control commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_control'): from .Control import ControlCls self._control = ControlCls(self._core, self._cmd_group) return self._control
[docs] def set(self, filename: str) -> None: """SCPI: HCOPy:TREPort:ITEM:LOGO \n Snippet: driver.hardCopy.treport.item.logo.set(filename = '1') \n No command help available \n :param filename: No help available """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'HCOPy:TREPort:ITEM:LOGO {param}')
[docs] def get(self) -> str: """SCPI: HCOPy:TREPort:ITEM:LOGO \n Snippet: value: str = driver.hardCopy.treport.item.logo.get() \n No command help available \n :return: filename: No help available""" response = self._core.io.query_str(f'HCOPy:TREPort:ITEM:LOGO?') return trim_str_response(response)
def clone(self) -> 'LogoCls': """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 = LogoCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group