Source code for rsmxo.Implementations.Display.Annotation.Color

from typing import List

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


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

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

	# noinspection PyTypeChecker
[docs] def get_catalog(self) -> List[enums.Color]: """ ``DISPlay:ANNotation:COLor:CATalog`` \n Snippet: ``value: List[enums.Color] = driver.display.annotation.color.get_catalog()`` \n Returns the list of possible colors, see Table 'Color catalog for annotations'. :return: color_catalog: Returned as comma-separated values: WHIT,LGR,MGR,GRAY,DGR,RED,DOR,ORAN,LOR,YELL,DAGR,GRE,LIGR,LBL,BLUE,PINK,LPIN,TURQ,LPUR,PURP """ response = self._core.io.query_str('DISPlay:ANNotation:COLor:CATalog?') return Conversions.str_to_list_enum(response, enums.Color)