A worker thread; not started until .start().
From inside the thread, trigger the callback On* by calling send_*().
The callback will then fire from the main thread.
|
__init__(self,
label)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
set_progress(self,
x)
Updates progress and calls OnProgress in the main thread. |
source code
|
|
|
set_status(self,
x)
Updates status and calls OnStatus in the main thread. |
source code
|
|
|
send_result(self,
x)
Calls OnResult in the main thread. |
source code
|
|
|
send_exception(self)
Calls OnException in the main thread. |
source code
|
|
|
send_progress(self,
x)
Calls OnProgress in the main thread. |
source code
|
|
|
send_status(self,
x)
Calls OnStatus in the main thread. |
source code
|
|
|
|
|
interrupt(self)
Raises KeyboardInterrupt in the Task thread. |
source code
|
|
|
join(self)
Waits for the Task thread to finish. |
source code
|
|
|
thread_main(self)
Calls run, then makes sure OnTerminate is called in the main thread. |
source code
|
|
|
run(self)
Override this method to make the Task thread do something. |
source code
|
|
|
gui_call_recv(self,
fn,
*args,
**kw)
Calls fn(*args, **kw) in the gtk main thread, waits for
self(*results) to be called, and returns results (a tuple). |
source code
|
|
|
|
|
idle_wait(self,
fn,
*args,
**kw)
Returns the result of fn(*args, **kw) called in the gtk main thread;
calling thread pauses until fn completes. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|