Logo Search packages:      
Sourcecode: quickly-widgets version File versions  Download package

def widgets::asynch_task_progressbox::AsynchTaskProgressBox::kill (   self  ) 

Stops pulstating the progressbar if the progressbar is working.
Sets the value of 'kill' to True in the run_function.
 

Definition at line 106 of file asynch_task_progressbox.py.

00106                  :
  """
  Stops pulstating the progressbar if the progressbar is working.
  Sets the value of 'kill' to True in the run_function.
 
  """

  #stop the pulse_thread and remove a reference to it if there is one
  if self.pulse_thread != None:
   self.pulse_thread.kill()
   self.pulse_thread = None

  #disable the cancel button since the task is about to be told to stop
  self.cancel_button.set_sensitive( False )
  #tell the users function tostop if it's thread exists
  if self.work_thread != None:
   self.work_thread.kill()

 #called when the widget is destroyed, attempts to clean up
 #the work thread and the pulse thread
 def __destroy(self, widget, data = None):


Generated by  Doxygen 1.6.0   Back to index