A model thread implementation that uses signals and slots
to communicate between the model thread and the gui thread
there is no explicit model thread verification on these methods,
since this model thread might not be THE model thread.
-
busy(*args, **kwargs)[source]
Return True or False indicating wether either the model or the
gui thread is doing something
-
pop(*args, **kwargs)[source]
Pop a task from the queue, return None if the queue is empty
-
wait_on_work()[source]
Wait for all work to be finished, this function should only be used
to do unit testing and such, since it will block the calling thread until
all work is done