from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LanguageCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("language", core, parent)
[docs]
def set(self, language: enums.PictureFormat) -> None:
"""
``HCOPy:DEVice:LANGuage`` \n
Snippet: ``driver.hardCopy.device.language.set(language = enums.PictureFormat.BMP)`` \n
This command selects the file format for a print job or to store a screenshot to a file.
:param language: BMP | JPG | PNG | PDF | SVG Data format for output to files DOC | PDF File type for test reports Available for HCOP:MODE REPort
"""
param = Conversions.enum_scalar_to_str(language, enums.PictureFormat)
self._core.io.write(f'HCOPy:DEVice:LANGuage {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.PictureFormat:
"""
``HCOPy:DEVice:LANGuage`` \n
Snippet: ``value: enums.PictureFormat = driver.hardCopy.device.language.get()`` \n
This command selects the file format for a print job or to store a screenshot to a file.
:return: language: BMP | JPG | PNG | PDF | SVG Data format for output to files DOC | PDF File type for test reports Available for HCOP:MODE REPort
"""
response = self._core.io.query_str(f'HCOPy:DEVice:LANGuage?')
return Conversions.str_to_scalar_enum(response, enums.PictureFormat)