UserCommand

class hive.trigger.UserCommand(command, hardware)

Bases: QObject, Trigger

Trigger to listen user events from the ui.

Two type of user command :

  • commands directly for the maze: configured in the config file.

  • command for the task: configured in the task.

No need to add it to the config file. The trigger is always linked to the task.

Parameters
  • command (dict) – All command list in the config file.

  • hardware (dict) – All hardware used in the maze with a mapping between virtual id and real id.

Attributes Summary

user_event

trigger the user input process.

Methods Summary

parse_action_dict(config, code, options_value)

trigger_internal_command(command)

trigger_user_command(key)

who_to_connect_where()

Attributes Documentation

user_event

trigger the user input process.

Type

dict

Methods Documentation

parse_action_dict(config, code, options_value)
trigger_internal_command(command)
trigger_user_command(key)
who_to_connect_where()