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 = 'abc') \n
No command help available \n
:param filename: String containing the location and name of the picture. You can use the following file types: bmp, jpg, png, gif, emf or wmf format.
"""
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: String containing the location and name of the picture. You can use the following file types: bmp, jpg, png, gif, emf or wmf format."""
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