Source code for rsrtx.Implementations.Display.Gate

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


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

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

[docs] def get_transparency(self) -> int: """ ``DISPlay:GATE:TRANsparency`` \n Snippet: ``value: int = driver.display.gate.get_transparency()`` \n Sets the transparency of the area that is defined as measurement or search gate. """ response = self._core.io.query_str_with_opc('DISPlay:GATE:TRANsparency?') return Conversions.str_to_int(response)
[docs] def set_transparency(self, gte_symbol_transp: int) -> None: """ ``DISPlay:GATE:TRANsparency`` \n Snippet: ``driver.display.gate.set_transparency(gte_symbol_transp = 1)`` \n Sets the transparency of the area that is defined as measurement or search gate. :param gte_symbol_transp: 0 to 100 """ param = Conversions.decimal_value_to_str(gte_symbol_transp) self._core.io.write_with_opc(f'DISPlay:GATE:TRANsparency {param}')