def updateSingleManga(self, manga): # create an UpdateWindow self.log.info('updateAll == Create update window') update_window = UpdateWindow.createForSingleManga(self) # ask the mmachine to start the update self.current_action = self.mmachine.do.updateSingleManga(manga) update_window.setAction(self.current_action) # monitor the action self.log.info('updateAll == Start timeout') GObject.timeout_add(300, update_window.refresh)