Ejemplo n.º 1
0
 def thread_cancelled(*args, **kwargs):
     """ Called when the refinement is cancelled by the user """
     remove_timeout_call(gui_timeout_id)
     self.view.stop_spinner()
     
     self.view.update_refinement_status("Cancelling...")
     thread.cancel()
     
     self.view.hide_refinement_info()
Ejemplo n.º 2
0
 def thread_cancelled(*args, **kwargs):
     """ Called when the refinement is cancelled by the user """
     remove_timeout_call(gui_timeout_id)
     self.view.stop_spinner()
     
     self.view.update_refinement_status("Cancelling...")
     thread.cancel()
     
     self.view.hide_refinement_info()
Ejemplo n.º 3
0
 def thread_completed(*args, **kwargs):
     """ Called when the refinement is completed """
     self.thread = None
     
     remove_timeout_call(gui_timeout_id)
     self.view.stop_spinner()
     
     # Make some plots:
     if self.model.make_psp_plots:
         self.view.update_refinement_status("Processing...")
         self.results_controller.generate_images()
     
     # Set the labels:
     self.results_controller.update_labels()
         
     # Hide our shit:
     self.view.hide_refinement_info()
     self.view.hide()
     
     # Show results:
     self.results_view.present()
Ejemplo n.º 4
0
 def thread_completed(*args, **kwargs):
     """ Called when the refinement is completed """
     self.thread = None
     
     remove_timeout_call(gui_timeout_id)
     self.view.stop_spinner()
     
     # Make some plots:
     if self.model.make_psp_plots:
         self.view.update_refinement_status("Processing...")
         self.results_controller.generate_images()
     
     # Set the labels:
     self.results_controller.update_labels()
         
     # Hide our shit:
     self.view.hide_refinement_info()
     self.view.hide()
     
     # Show results:
     self.results_view.present()
Ejemplo n.º 5
0
 def on_complete(*args, **kwargs):
     remove_timeout_call(gui_callback)
     taskgui.stop()
     window.destroy()
     if callable(complete_callback):
         complete_callback(*args, **kwargs)