def load_next(self):
def on_load_next(info, error=None):<EOL><INDENT>self.loading_spin.stop()<EOL>self.loading_spin.hide()<EOL>if not info:<EOL><INDENT>self.app.toast(_('<STR_LIT>'))<EOL><DEDENT>elif info.get('<STR_LIT>', -<NUM_LIT:1>) != <NUM_LIT:0>:<EOL><INDENT>self.app.toast(info.get('<STR_LIT>', _('<STR_LIT>')))<EOL><DEDENT>if error or not info or info.get('<STR_LIT>', -<NUM_LIT:1>) != <NUM_LIT:0>:<EOL><INDENT>logger.error('<STR_LIT>' % (info, error))<EOL>return<EOL><DEDENT>if info['<STR_LIT:list>']:<EOL><INDENT>self.icon_window.load_next(info['<STR_LIT:list>'])<EOL><DEDENT>else:<EOL><INDENT>self.has_next = False<EOL><DEDENT><DEDENT>if not self.has_next:<EOL><INDENT>return<EOL><DEDENT>self.page_num = self.page_num + <NUM_LIT:1><EOL>self.path_box.set_path(self.path)<EOL>self.loading_spin.start()<EOL>self.loading_spin.show_all()<EOL>gutil.async_call(pcs.list_dir, self.app.cookie, self.app.tokens,<EOL>self.path, self.page_num, callback=on_load_next)<EOL>
载入下一页