[docs]classUnitCls:"""Unit commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("unit",core,parent)
[docs]defset(self,unit:enums.PageMarginUnit)->None:"""SCPI: HCOPy:PAGE:MARGin:UNIT \n Snippet: driver.hardCopy.page.margin.unit.set(unit = enums.PageMarginUnit.IN) \n This command defines the unit in which the margins for the printout page are configured. \n :param unit: MM | IN MM millimeters IN inches """param=Conversions.enum_scalar_to_str(unit,enums.PageMarginUnit)self._core.io.write(f'HCOPy:PAGE:MARGin:UNIT {param}')
# noinspection PyTypeChecker
[docs]defget(self)->enums.PageMarginUnit:"""SCPI: HCOPy:PAGE:MARGin:UNIT \n Snippet: value: enums.PageMarginUnit = driver.hardCopy.page.margin.unit.get() \n This command defines the unit in which the margins for the printout page are configured. \n :return: unit: MM | IN MM millimeters IN inches"""response=self._core.io.query_str(f'HCOPy:PAGE:MARGin:UNIT?')returnConversions.str_to_scalar_enum(response,enums.PageMarginUnit)