from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DialogCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("dialog", core, parent)
[docs]
def get_fontsize(self) -> int:
"""
``DISPlay:DIALog:FONTsize`` \n
Snippet: ``value: int = driver.display.dialog.get_fontsize()`` \n
Sets the font size of the text in dialog boxes.
:return: dialog_font_size: 16 to 25
"""
response = self._core.io.query_str('DISPlay:DIALog:FONTsize?')
return Conversions.str_to_int(response)
[docs]
def set_fontsize(self, dialog_font_size: int) -> None:
"""
``DISPlay:DIALog:FONTsize`` \n
Snippet: ``driver.display.dialog.set_fontsize(dialog_font_size = 1)`` \n
Sets the font size of the text in dialog boxes.
:param dialog_font_size: 16 to 25
"""
param = Conversions.decimal_value_to_str(dialog_font_size)
self._core.io.write(f'DISPlay:DIALog:FONTsize {param}')
[docs]
def get_transparency(self) -> int:
"""
``DISPlay:DIALog:TRANsparency`` \n
Snippet: ``value: int = driver.display.dialog.get_transparency()`` \n
Sets the transparency of the dialog box background. For high transparency values, you can see the waveform display in the
background, and possibly check the effect of the changed setting. For lower transparency values, readability in the
dialog box improves.
:return: dialog_transp: 0 to 70
"""
response = self._core.io.query_str('DISPlay:DIALog:TRANsparency?')
return Conversions.str_to_int(response)
[docs]
def set_transparency(self, dialog_transp: int) -> None:
"""
``DISPlay:DIALog:TRANsparency`` \n
Snippet: ``driver.display.dialog.set_transparency(dialog_transp = 1)`` \n
Sets the transparency of the dialog box background. For high transparency values, you can see the waveform display in the
background, and possibly check the effect of the changed setting. For lower transparency values, readability in the
dialog box improves.
:param dialog_transp: 0 to 70
"""
param = Conversions.decimal_value_to_str(dialog_transp)
self._core.io.write(f'DISPlay:DIALog:TRANsparency {param}')