Source code for RsFsw.Implementations.HardCopy.Page.Margin.Bottom

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


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

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

[docs] def set(self, bottom: float) -> None: """ ``HCOPy:PAGE:MARGin:BOTTom`` \n Snippet: ``driver.hardCopy.page.margin.bottom.set(bottom = 1.0)`` \n This command defines the margin at the bottom of the printout page on which no elements are printed. The margins are defined according to method ``RsFsw.hardCopy.page.margin.unit.set()`` . """ param = Conversions.decimal_value_to_str(bottom) self._core.io.write(f'HCOPy:PAGE:MARGin:BOTTom {param}')
[docs] def get(self) -> float: """ ``HCOPy:PAGE:MARGin:BOTTom`` \n Snippet: ``value: float = driver.hardCopy.page.margin.bottom.get()`` \n This command defines the margin at the bottom of the printout page on which no elements are printed. The margins are defined according to method ``RsFsw.hardCopy.page.margin.unit.set()`` . """ response = self._core.io.query_str(f'HCOPy:PAGE:MARGin:BOTTom?') return Conversions.str_to_float(response)