Source code for RsFsw.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
class LogoCls:
	"""
	| Commands in total: 2
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def control(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		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: """ ``HCOPy:TREPort:ITEM:LOGO`` \n Snippet: ``driver.hardCopy.treport.item.logo.set(filename = 'abc')`` \n No help available :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: """ ``HCOPy:TREPort:ITEM:LOGO`` \n Snippet: ``value: str = driver.hardCopy.treport.item.logo.get()`` \n No help available :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