예제 #1
0
파일: main.py 프로젝트: pombreda/calibre-1
 def create_from_links(self):
     toc = from_links(self.ebook)
     if len(toc) == 0:
         return error_dialog(
             self,
             _('No items found'),
             _('No links were found that could be added to the Table of Contents.'
               ),
             show=True)
     self.insert_toc_fragment(toc)
예제 #2
0
파일: main.py 프로젝트: AtulKumar2/calibre
 def create_from_links(self):
     toc = from_links(self.ebook)
     if len(toc) == 0:
         return error_dialog(self, _('No items found'),
             _('No links were found that could be added to the Table of Contents.'), show=True)
     self.insert_toc_fragment(toc)