コード例 #1
0
ファイル: view.py プロジェクト: BobPyron/calibre
 def match_changed(self, action):
     try:
         for i, ac in enumerate(self.alter_tb.match_menu.actions()):
             if ac is action:
                 config.set('match_tags_type', self.db.MATCH_TYPE[i])
     except:
         pass
コード例 #2
0
 def match_changed(self, action):
     try:
         for i, ac in enumerate(self.alter_tb.match_menu.actions()):
             if ac is action:
                 config.set('match_tags_type', self.db.MATCH_TYPE[i])
     except:
         pass
コード例 #3
0
ファイル: ui.py プロジェクト: sportsbite/calibre
 def write_settings(self):
     with gprefs:  # Only write to gprefs once
         config.set('main_window_geometry', self.saveGeometry())
         dynamic.set('sort_history', self.library_view.model().sort_history)
         self.save_layout_state()
コード例 #4
0
ファイル: update.py プロジェクト: Lensman-86/glacier.io
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
コード例 #5
0
 def sort_changed(self, action):
     for i, ac in enumerate(self.alter_tb.sort_menu.actions()):
         if ac is action:
             config.set('sort_tags_by', self.db.CATEGORY_SORTS[i])
             self.recount()
             break
コード例 #6
0
ファイル: ui.py プロジェクト: KyoYang/calibre
 def write_settings(self):
     with gprefs:  # Only write to gprefs once
         config.set('main_window_geometry', self.saveGeometry())
         dynamic.set('sort_history', self.library_view.model().sort_history)
         self.save_layout_state()
コード例 #7
0
ファイル: update.py プロジェクト: artbycrunk/calibre
 def show_future(self, *args):
     config.set('new_version_notification', bool(self.cb.isChecked()))
コード例 #8
0
ファイル: view.py プロジェクト: BobPyron/calibre
 def sort_changed(self, action):
     for i, ac in enumerate(self.alter_tb.sort_menu.actions()):
         if ac is action:
             config.set('sort_tags_by', self.db.CATEGORY_SORTS[i])
             self.recount()
             break
コード例 #9
0
ファイル: ui.py プロジェクト: Eksmo/calibre
 def write_settings(self):
     config.set("main_window_geometry", self.saveGeometry())
     dynamic.set("sort_history", self.library_view.model().sort_history)
     self.save_layout_state()