code: def do_response(self, response_id):
          '''进行批量重命名.
  
          这里, 会忽略掉那些名称没发生变化的文件.
          '''
          if response_id != Gtk.ResponseType.OK:
              return
          filelist = []
          for row in self.rows:
              if row[1].get_text() == row[2].get_text():
                  continue
              filelist.append({'path': row[0], 'newname': row[2].get_text()})
          if len(filelist) == 0:
              return
          pcs.rename(self.app.cookie, self.app.tokens, filelist)
          gutil.async_call(pcs.rename, self.app.cookie, self.app.tokens,
                           filelist, callback=self.app.reload_current_pagef do_response(self, response_id):
          '''进行批量重命名.
  
          这里, 会忽略掉那些名称没发生变化的文件.
          '''
          if response_id != Gtk.ResponseType.OK:
              return
          filelist = []
          for row in self.rows:
              if row[1].get_text() == row[2].get_text():
                  continue
              filelist.append({'path': row[0], 'newname': row[2].get_text()})
          if len(filelist) == 0:
              return
          pcs.rename(self.app.cookie, self.app.tokens, filelist)
          gutil.async_call(pcs.rename, self.app.cookie, self.app.tokens,
                           filelist, callback=self.app.reload_current_page)
docs: 进行批量重命名.
  
          这里, 会忽略掉那些名称没发生变化的文件.