~bkrpr/bookliberator/trunk

« back to all changes in this revision

Viewing changes to GUI/GoPane.py

  • Committer: James Vasile
  • Date: 2009-01-24 04:11:35 UTC
  • Revision ID: james@hackervisions.org-20090124041135-gg5yvdvtjehcxcoz
disconnect stats until we fix it

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
            self.thread.start(self.M, self.update_group, self.progress.set_text)
312
312
        else:
313
313
            self.cancel_thread()
314
 
        
 
314
 
 
315
    def do_crop_correct(self):
 
316
        '''Apply statistical correction to the cropped images.'''
 
317
        sanity = cropper.SanityCheck(M)
 
318
        self.thread = GeneratorTask(sanity.do_sanity_check,
 
319
                                    self.progress.set_fraction,
 
320
                                    self.cancel_thread)
 
321
        self.thread.start(self.update_group, self.progress.set_text)
 
322
 
315
323
    def cancel_thread(self, button=None):
316
324
        try:
317
325
            self.thread.stop()
320
328
        self.lower.destroy()
321
329
        self.go_btn.set_sensitive(True)
322
330
        self.set_modal(False)
323
 
 
324
 
    def set_progress_bar_fraction(self, fraction):
325
 
        self.progress.set_fraction(fraction)
 
331
        comm.out("Done processing.")
326
332
 
327
333
    def go_clicked(self, button):
328
334
        '''This is where we kick off the processing that was