gui.callbacks.add_pcomm_sender
gui.callbacks.add_pcomm_sender(app, modules)Add a callback to the Dash app to send pcomm commands to modules.
This function sets up a callback that sends pcomm commands to specified modules based on user interactions. It handles the evaluation of pcomm templates and sends the appropriate commands to the modules.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| app | Dash | The Dash application to which the callback will be added. | required |
| modules | list[ModuleConnection] | A list of ModuleConnection objects representing the modules to be included in the application. | required |
Returns
| Name | Type | Description |
|---|---|---|
| Dash | The Dash application with the added callback. |