def create_from_files(self): toc = from_files(self.ebook) if len(toc) == 0: return error_dialog( self, _('No items found'), _('No files were found that could be added to the Table of Contents.' ), show=True) self.insert_toc_fragment(toc)
def create_from_files(self): toc = from_files(self.ebook) if len(toc) == 0: return error_dialog(self, _('No items found'), _('No files were found that could be added to the Table of Contents.'), show=True) self.insert_toc_fragment(toc)