コード例 #1
0
ファイル: choose_library.py プロジェクト: zhongsifen/calibre
 def choose_library(self, *args):
     if not self.change_library_allowed():
         return
     from calibre.gui2.dialogs.choose_library import ChooseLibrary
     self.gui.library_view.save_state()
     db = self.gui.library_view.model().db
     location = self.stats.canonicalize_path(db.library_path)
     self.pre_choose_dialog_location = location
     c = ChooseLibrary(db, self.choose_library_callback, self.gui)
     c.exec_()
コード例 #2
0
 def choose_library(self, *args):
     if not self.change_library_allowed():
         return
     from calibre.gui2.dialogs.choose_library import ChooseLibrary
     self.gui.library_view.save_state()
     db = self.gui.library_view.model().db
     location = self.stats.canonicalize_path(db.library_path)
     self.pre_choose_dialog_location = location
     c = ChooseLibrary(db, self.choose_library_callback, self.gui)
     c.exec_()