Source code for rsrtx.Implementations.Power.Report.Font

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


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

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

	# noinspection PyTypeChecker
[docs] def get_fami(self) -> enums.FontFamily: """ ``POWer:REPort:FONT:FAMI`` \n Snippet: ``value: enums.FontFamily = driver.power.report.font.get_fami()`` \n Selects the font family. You can choose between Arial and Helvetica. :return: font_family: ARIAL | HELV """ response = self._core.io.query_str('POWer:REPort:FONT:FAMI?') return Conversions.str_to_scalar_enum(response, enums.FontFamily)
[docs] def set_fami(self, font_family: enums.FontFamily) -> None: """ ``POWer:REPort:FONT:FAMI`` \n Snippet: ``driver.power.report.font.set_fami(font_family = enums.FontFamily.ARIAL)`` \n Selects the font family. You can choose between Arial and Helvetica. :param font_family: ARIAL | HELV """ param = Conversions.enum_scalar_to_str(font_family, enums.FontFamily) self._core.io.write(f'POWer:REPort:FONT:FAMI {param}')
[docs] def get_size(self) -> int: """ ``POWer:REPort:FONT:SIZE`` \n Snippet: ``value: int = driver.power.report.font.get_size()`` \n Sets the font size. :return: fontsize: 10 to 30 """ response = self._core.io.query_str('POWer:REPort:FONT:SIZE?') return Conversions.str_to_int(response)
[docs] def set_size(self, fontsize: int) -> None: """ ``POWer:REPort:FONT:SIZE`` \n Snippet: ``driver.power.report.font.set_size(fontsize = 1)`` \n Sets the font size. :param fontsize: 10 to 30 """ param = Conversions.decimal_value_to_str(fontsize) self._core.io.write(f'POWer:REPort:FONT:SIZE {param}')
[docs] def get_colo(self) -> int: """ ``POWer:REPort:FONT:COLO`` \n Snippet: ``value: int = driver.power.report.font.get_colo()`` \n Sets the font color. :return: font_color: 0 to 4294967295 """ response = self._core.io.query_str('POWer:REPort:FONT:COLO?') return Conversions.str_to_int(response)
[docs] def set_colo(self, font_color: int) -> None: """ ``POWer:REPort:FONT:COLO`` \n Snippet: ``driver.power.report.font.set_colo(font_color = 1)`` \n Sets the font color. :param font_color: 0 to 4294967295 """ param = Conversions.decimal_value_to_str(font_color) self._core.io.write(f'POWer:REPort:FONT:COLO {param}')