Exemplo n.º 1
0
 def finished(self):
     if self.running_tasks:
         raise RuntimeError
     TaskQueue.finished(self)
     self.window.set_sensitive()
     self.window.conversion_ended()
     total_time = self.run_finish_time - self.run_start_time
     msg = _('Conversion done, in %s') % self.format_time(total_time)
     if self.error_count:
         msg += ', %d error(s)' % self.error_count
     self.window.set_status(msg)
     if not self.window.is_active():
         notification(msg) # this must move
     self.reset_counters()
Exemplo n.º 2
0
 def finished(self):
     # This must be called with emit_async
     if self.running_tasks:
         raise RuntimeError
     TaskQueue.finished(self)
     self.window.set_sensitive()
     self.window.conversion_ended()
     total_time = self.run_finish_time - self.run_start_time
     msg = _("Conversion done in %s") % self.format_time(total_time)
     if self.error_count:
         msg += ", %d error(s)" % self.error_count
     self.window.set_status(msg)
     if not self.window.is_active():
         notification(msg)  # this must move
     self.reset_counters()
Exemplo n.º 3
0
 def finished(self):
     # This must be called with emit_async
     if self.running_tasks:
         raise RuntimeError
     TaskQueue.finished(self)
     self.window.set_sensitive()
     self.window.conversion_ended()
     total_time = self.run_finish_time - self.run_start_time
     msg = _('Conversion done in %s') % self.format_time(total_time)
     if self.error_count:
         msg += ', %d error(s)' % self.error_count
     self.window.set_status(msg)
     if not self.window.is_active():
         notification(msg)  # this must move
     self.reset_counters()