Source code for RsFsw.Implementations.Display.Logo

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LogoCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, state: bool) -> None: """ ``DISPlay:LOGO`` \n Snippet: ``driver.display.logo.set(state = False)`` \n Activates/deactivates the printout of the Rohde & Schwarz company logo at the top of each page. :param state: 1 | 0 | ON | OFF 1 | ON Logo is printed. 0 | OFF Logo is not printed. """ param = Conversions.bool_to_str(state) self._core.io.write(f'DISPlay:LOGO {param}')
[docs] def get(self) -> bool: """ ``DISPlay:LOGO`` \n Snippet: ``value: bool = driver.display.logo.get()`` \n Activates/deactivates the printout of the Rohde & Schwarz company logo at the top of each page. :return: state: 1 | 0 | ON | OFF 1 | ON Logo is printed. 0 | OFF Logo is not printed. """ response = self._core.io.query_str(f'DISPlay:LOGO?') return Conversions.str_to_bool(response)