Source code for rsmxo.Implementations.Display.Result

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


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

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

[docs] def get_fontsize(self) -> int: """ ``DISPlay:RESult:FONTsize`` \n Snippet: ``value: int = driver.display.result.get_fontsize()`` \n Sets the font size of the text in result tables. :return: result_font_size: 16 to 25 """ response = self._core.io.query_str('DISPlay:RESult:FONTsize?') return Conversions.str_to_int(response)
[docs] def set_fontsize(self, result_font_size: int) -> None: """ ``DISPlay:RESult:FONTsize`` \n Snippet: ``driver.display.result.set_fontsize(result_font_size = 1)`` \n Sets the font size of the text in result tables. :param result_font_size: 16 to 25 """ param = Conversions.decimal_value_to_str(result_font_size) self._core.io.write(f'DISPlay:RESult:FONTsize {param}')