def __init__(self, finish_func):
     # finish_func(jobid) is the function that is called when a job is completed.
     GUIObject.__init__(self)
     ThreadedJobPerformer.__init__(self)
     self._finish_func = finish_func
     self.jobdesc_textfield = TextField()
     self.progressdesc_textfield = TextField()
     self.jobid = None
Exemple #2
0
 def __init__(self, finish_func):
     # finish_func(jobid) is the function that is called when a job is completed.
     GUIObject.__init__(self)
     ThreadedJobPerformer.__init__(self)
     self._finish_func = finish_func
     self.jobdesc_textfield = TextField()
     self.progressdesc_textfield = TextField()
     self.jobid = None
 def __init__(self, finish_func):
     # finish_func(jobid) is the function that is called when a job is completed.
     GUIObject.__init__(self)
     ThreadedJobPerformer.__init__(self)
     self._finish_func = finish_func
     #: :class:`.TextField`. It contains that title you gave the job on :meth:`run`.
     self.jobdesc_textfield = TextField()
     #: :class:`.TextField`. It contains the job textual update that the function might yield
     #: during its course.
     self.progressdesc_textfield = TextField()
     self.jobid = None
Exemple #4
0
 def _async_run(self, *args):
     proxy.createPool()
     try:
         ThreadedJobPerformerBase._async_run(self, *args)
     finally:
         proxy.destroyPool()