Part of pida.utils.gthreads View In Hierarchy
Known subclasses: pida.utils.gthreads.GeneratorTask
The first on is the 'work_callback' this is where the lengthy
operation must be performed. This object may return an object or a group
of objects, these will be passed onto the second callback 'loop_callback'.
You must be aware on how the argument passing is done. If you return an
object that is not a tuple then it's passed directly to the loop callback.
If you return None
no arguments are supplied. If you return a tuple
object then these will be the arguments sent to the loop callback.
The loop callback is called inside Gtk+'s main loop and it's where you should stick code that affects the UI.
Line # | Kind | Name | Docs |
---|---|---|---|
49 | Method | __init__ | Undocumented |
57 | Method | start | Please note that start is not thread safe. It is assumed that this |
66 | Method | work_callback | Undocumented |
69 | Method | loop_callback | Undocumented |
72 | Method | _work_callback | Undocumented |
76 | Method | _loop_callback | Undocumented |