The utils.py module#

Summary#

sleep

Non-blocking sleep for ms milliseconds.

drain

Execute all pending work on the main thread.

load_library_windows

Load a library into the python process on windows.

Description#

Miscellaneous utilities.

Module detail#

utils.sleep(ms: int) None#

Non-blocking sleep for ms milliseconds.

Mechanical should still work during the sleep.

utils.drain() None#

Execute all pending work on the main thread.

Blocks until all the UI messages and other scheduled work complete.

utils.load_library_windows(library: str) int#

Load a library into the python process on windows.

utils.TEST_HELPER = None#