utils: Qt helpers

Miscellaneous helpers for Qt

concurrent

This module allows to run a function in Qt main thread from another thread

silx.gui.utils.concurrent.submitToQtMainThread(fn, *args, **kwargs)[source]

Run fn(args, kwargs) in Qt’s main thread.

If not called from the main thread, this is run asynchronously.

Parameters:fn (callable) – Function to call in main thread.
Returns:A future object to retrieve the result
Return type:concurrent.future.Future