Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)