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
class SelectCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
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:
"""
``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.
: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())