Source code for RsNgx.Implementations.HardCopy.Size

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SizeCls: """Size commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("size", core, parent)
[docs] def get_x(self) -> int: """SCPI: HCOPy:SIZE:X \n Snippet: value: int = driver.hardCopy.size.get_x() \n Returns the horizontal dimension of the screenshots. \n :return: result: No help available """ response = self._core.io.query_str('HCOPy:SIZE:X?') return Conversions.str_to_int(response)
[docs] def get_y(self) -> int: """SCPI: HCOPy:SIZE:Y \n Snippet: value: int = driver.hardCopy.size.get_y() \n Returns the vertical dimension of the screenshots. \n :return: result: No help available """ response = self._core.io.query_str('HCOPy:SIZE:Y?') return Conversions.str_to_int(response)