Skip to main content

Panel

Global registry of remote control commands.

Attributes

AttributeTypeDescription
datadict = {}Global dictionary mapping command names and aliases to their respective function implementations.
metadict = {}Global dictionary storing controller_info_t metadata objects for each registered command, keyed by command name.

Methods


register()

@classmethod
def register(
*args: any,
**kwargs: any
) - > function

Registers a function as a remote control command in the global registry, supporting both direct application and decorator usage.

Parameters

NameTypeDescription
*argsanyThe function to be registered when used as a direct call.
**kwargsanyConfiguration options passed to the underlying registration logic, such as name, alias, or visibility.

Returns

TypeDescription
functionThe original function being registered, or a decorator function if no arguments are provided.