コード例 #1
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
コード例 #2
0
ファイル: progress_window.py プロジェクト: stevexyz/dupeguru
 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
コード例 #3
0
ファイル: progress_window.py プロジェクト: LJnotions/dupeguru
 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
コード例 #4
0
ファイル: __init__.py プロジェクト: Mouchnino/moneyguru
 def _async_run(self, *args):
     proxy.createPool()
     try:
         ThreadedJobPerformerBase._async_run(self, *args)
     finally:
         proxy.destroyPool()