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.
timing
Print the time taken for a function to execute.
| PARAMETER | DESCRIPTION |
|---|---|
func
|
Function to be timed, by default None
TYPE:
|
target
|
Function to print the timing information, by default print
TYPE:
|