Global-level functions

getWaitForSignal(self, signal: imswitch.imcommon.framework.qt.Signal, pollIntervalSeconds: float = 1.0) Callable[[], NoneType]

Returns a function that will wait for the specified signal to emit. The returned function will continuously check whether the signal has been emitted since its creation. The polling interval defaults to one second, and can be customized.

importScript(self, path: str) Any

Imports the script at the specified path (either absolute or relative to the main script) and returns it as a module variable.