Source code for RsFsw.Implementations.System.Plugin.AppStarter.Select

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SelectCls: """Select commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("select", core, parent)
[docs] def set(self, application_group: str, display_name: str) -> None: """SCPI: SYSTem:PLUGin:APPStarter:SELect \n Snippet: driver.system.plugin.appStarter.select.set(application_group = 'abc', display_name = 'abc') \n Selects the application to be executed in subsequent commands. The query returns the currently selected application. \n :param application_group: 'External' | 'User' The group (tab) of applications in the Application Starter that the application belongs to. 'External' External Applications 'User' User Applications :param display_name: Name of the application in the Application Starter """ param = ArgSingleList().compose_cmd_string(ArgSingle('application_group', application_group, DataType.String), ArgSingle('display_name', display_name, DataType.String)) self._core.io.write(f'SYSTem:PLUGin:APPStarter:SELect {param}'.rstrip())