def _new_epub_dialog(self):
self.new_epub = QFileDialog.getOpenFileName(self, self.tr("Open EPUB"), "", "EPUB (*.epub)")[0]
if self.new_epub:
self.new_epub_button.setText(os.path.basename(self.new_epub))
else:
self.new_epub_button.setText(self.tr("Select File..."))
self.completeChanged.emit()
评论列表
文章目录