示例#1
0
 def changeModuleFor(self, process, manga, new_result, new_module_name):
   # create a final status window
   self.log.info('changeModuleFor == Manga: ' + manga.getName() + ', Result: ' + str(new_result) )
   info_window = InfoWindow.create(process.base_window, 'Working...')
   info_window.setLabel('Changing module')
   
   self.current_action = self.mmachine.do.changeModuleForManga(manga, new_result, new_module_name)
   process.setAction(self.current_action)
   
   # monitor the action
   self.log.info('changeModuleFor == Start timeout' )
   GObject.timeout_add(300, process.onModuleChanged, info_window)
示例#2
0
 def addManga(self, result, process):
   # create a final status window
   self.log.info('addManga == Result: ' + str(result) )
   info_window = InfoWindow.create(process.base_window, 'Working...')
   info_window.setLabel('Additing manga to archive')
   
   last_chapter_number = process.getLastChapterNumber()
   self.current_action = self.mmachine.do.addMangaToArchive(result, last_chapter_number)
   process.setAction(self.current_action)
   
   # monitor the action
   self.log.info('addManga == Start timeout' )
   GObject.timeout_add(300, process.addMangaToArchive, info_window)
示例#3
0
 def showCompletion(self):
   info_window = InfoWindow.create(self.base_window, 'Manga added')
   info_window.setLabel('Manga added')
   info_window.showCloseButton(True)
   info_window.setOnClose( self.base_window.close )