decorators
execute_in_thread
Execute a function in a separate thread, usually for functions that do not return a value. For functions that return a value, use the slot parameter to connect the resultReady signal to a function that will receive the result.
PARAMETER | DESCRIPTION |
---|---|
func
|
Function to be executed in a separate thread, by default None
TYPE:
|
slot
|
Function to be connected to the resultReady signal when the result is ready, by default None
TYPE:
|
get_main_window
get_main_window() -> Optional[MicromechanicalMainWindow]
Return the main window for the application.