fusion_addin_framework.utils.execute_from_event¶
- fusion_addin_framework.utils.execute_from_event(to_execute: Callable, event_id: str)¶
Utility function which allows you to execute the passed Callable from witihn a custom event. This is needed when you want to trigger some Fusion related actions from a thread or other external non Fusion stimuli. The passed Callable must not accept any arguments. The event must has been created already with the ‘create_custom_event’ method where dynamic_use was set to True.
- Parameters
to_execute (Callable) – The argument free action to execute.
event_id (str) – The event id of the event from which the passed Callable gets executed. The event must has been created already with the ‘create_custom_event’ method where dynamic_use was set to True.