action_runner

class camelot.view.action_runner.ActionRunner(generator_function, gui_context)[source]

Helper class for handling the signals and slots when an action is running. This class takes a generator and iterates it within the model thread while taking care of Exceptions raised and ActionSteps yielded by the generator.

This is class is intended for internal Camelot use only.

exception(exception_info)[source]

Handle an exception raised by the generator

exec_(flags=0)[source]

Reimplementation of exec_ to prevent the event loop being started when exit has been called prior to calling exec_.

This can be the case when running in single threaded mode.

exit(return_code=0)[source]

Reimplementation of exit to store the return code

generator(generator)[source]

Handle the creation of the generator

camelot.view.action_runner.hide_progress_dialog(*args, **kwds)[source]

A context manager to hide the progress dialog of the gui context when the context is entered, and restore the original state at exit