Exemplo n.º 1
0
 def on_ok_button_clicked(self, widget):
     
     self.ok_button.set_sensitive(False)
     self.tags_vbox.set_sensitive(False)
     
     data = [(row[4], row[5]) for row in self.tags_model if row[0] == True]
     logger.info('Updating %s tracks' % len(data))
 
     self.update_thread = SimpleProgressThread(track_update_thread,
                                               data, self.radio_replace.get_active())
     self.update_thread.connect('done', self._on_update_done)
     
     self.manager.add_monitor(self.update_thread, _("Updating groups"), Gtk.STOCK_CONVERT)
Exemplo n.º 2
0
 def _on_rescan_done(self, thread):
     '''Called when the collection is finished loading'''
     
     if self.rescan_thread is None:
         return
     
     self.rescan_thread = None
     
     logger.info('Import directory scan completed, importing groups')
     
     # now that the collection has loaded, import the groups from them
     self.import_track_data = []
     self.import_thread = SimpleProgressThread(track_import_thread,
                                               self.collection, self.exaile.collection,
                                               self.import_track_data)
     self.import_thread.connect('done', self._on_import_done)
     self.manager.add_monitor(self.import_thread, _("Importing groups"), Gtk.STOCK_JUMP_TO)