當前位置: 首頁>>代碼示例>>Python>>正文


Python AutoSaver.AutoSaver類代碼示例

本文整理匯總了Python中Utilities.AutoSaver.AutoSaver的典型用法代碼示例。如果您正苦於以下問題:Python AutoSaver類的具體用法?Python AutoSaver怎麽用?Python AutoSaver使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了AutoSaver類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(AdBlockManager, self).__init__(parent)
     
     self.__loaded = False
     self.__subscriptionsLoaded = False
     self.__enabled = False
     self.__adBlockDialog = None
     self.__adBlockExceptionsDialog = None
     self.__adBlockNetwork = None
     self.__adBlockPage = None
     self.__subscriptions = []
     self.__exceptedHosts = Preferences.getHelp("AdBlockExceptions")
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.__defaultSubscriptionUrlString = \
         "abp:subscribe?location=" \
         "https://easylist-downloads.adblockplus.org/easylist.txt&"\
         "title=EasyList"
     self.__customSubscriptionUrlString = \
         bytes(self.__customSubscriptionUrl().toEncoded()).decode()
     
     self.rulesChanged.connect(self.__saveTimer.changeOccurred)
開發者ID:pycom,項目名稱:EricShort,代碼行數:27,代碼來源:AdBlockManager.py

示例2: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent widget (QWidget)
     """
     super(DownloadManager, self).__init__(parent)
     self.setupUi(self)
     
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.__model = DownloadModel(self)
     self.__manager = Helpviewer.HelpWindow.HelpWindow\
         .networkAccessManager()
     
     self.__iconProvider = None
     self.__downloads = []
     self.__downloadDirectory = ""
     self.__loaded = False
     
     self.setDownloadDirectory(Preferences.getUI("DownloadPath"))
     
     self.downloadsView.setShowGrid(False)
     self.downloadsView.verticalHeader().hide()
     self.downloadsView.horizontalHeader().hide()
     self.downloadsView.setAlternatingRowColors(True)
     self.downloadsView.horizontalHeader().setStretchLastSection(True)
     self.downloadsView.setModel(self.__model)
     self.downloadsView.setContextMenuPolicy(Qt.CustomContextMenu)
     self.downloadsView.customContextMenuRequested.connect(
         self.__customContextMenuRequested)
     
     self.__load()
開發者ID:Darriall,項目名稱:eric,代碼行數:33,代碼來源:DownloadManager.py

示例3: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(BookmarksManager, self).__init__(parent)
     
     self.__saveTimer = AutoSaver(self, self.save)
     self.entryAdded.connect(self.__saveTimer.changeOccurred)
     self.entryRemoved.connect(self.__saveTimer.changeOccurred)
     self.entryChanged.connect(self.__saveTimer.changeOccurred)
     
     self.__initialize()
開發者ID:testmana2,項目名稱:test,代碼行數:14,代碼來源:BookmarksManager.py

示例4: __init__

 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     QNetworkCookieJar.__init__(self, parent)
     
     self.__loaded = False
     self.__acceptCookies = self.AcceptOnlyFromSitesNavigatedTo
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.__cookiesFile = os.path.join(Utilities.getConfigDir(), 
                                       "browser", "cookies.ini")
開發者ID:usc-bbdl,項目名稱:R01_HSC_cadaver_system,代碼行數:14,代碼來源:CookieJar.py

示例5: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(UserAgentManager, self).__init__(parent)
     
     self.__agents = {}
     # dictionary with agent strings indexed by host name
     self.__loaded = False
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.changed.connect(self.__saveTimer.changeOccurred)
開發者ID:testmana2,項目名稱:test,代碼行數:14,代碼來源:UserAgentManager.py

示例6: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(ZoomManager, self).__init__(parent)
     
     self.__zoomDB = {}
     
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.changed.connect(self.__saveTimer.changeOccurred)
     
     self.__loaded = False
開發者ID:testmana2,項目名稱:test,代碼行數:15,代碼來源:ZoomManager.py

示例7: __init__

 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     QObject.__init__(self, parent)
     
     self.__logins = {}
     self.__loginForms = {}
     self.__never = []
     self.__loaded = False
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.connect(self, SIGNAL("changed()"), self.__saveTimer.changeOccurred)
開發者ID:usc-bbdl,項目名稱:R01_HSC_cadaver_system,代碼行數:15,代碼來源:PasswordManager.py

示例8: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(PasswordManager, self).__init__(parent)
     
     self.__logins = {}
     self.__loginForms = {}
     self.__never = []
     self.__loaded = False
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.changed.connect(self.__saveTimer.changeOccurred)
開發者ID:testmana2,項目名稱:test,代碼行數:15,代碼來源:PasswordManager.py

示例9: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(IrcNetworkManager, self).__init__(parent)
     
     self.__loaded = False
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.__settings = Preferences.Prefs.settings
     
     self.__networks = {}
     self.__identities = {}
     
     self.dataChanged.connect(self.__saveTimer.changeOccurred)
開發者ID:testmana2,項目名稱:test,代碼行數:17,代碼來源:IrcNetworkManager.py

示例10: __init__

 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     QObject.__init__(self, parent)
     
     self.__loaded = False
     self.__subscriptionsLoaded = False
     self.__enabled = False
     self.__adBlockDialog = None
     self.__adBlockNetwork = None
     self.__adBlockPage = None
     self.__subscriptions = []
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.connect(self, SIGNAL("rulesChanged()"), self.__saveTimer.changeOccurred)
開發者ID:usc-bbdl,項目名稱:R01_HSC_cadaver_system,代碼行數:18,代碼來源:AdBlockManager.py

示例11: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     if parent is None:
         parent = e5App()
     super(OpenSearchManager, self).__init__(parent)
     
     self.__replies = []
     self.__engines = {}
     self.__keywords = {}
     self.__current = ""
     self.__loading = False
     self.__saveTimer = AutoSaver(self, self.save)
     
     self.changed.connect(self.__saveTimer.changeOccurred)
     
     self.load()
開發者ID:testmana2,項目名稱:test,代碼行數:20,代碼來源:OpenSearchManager.py

示例12: __init__

 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     QObject.__init__(self, parent)
     
     self.__loaded = False
     self.__saveTimer = AutoSaver(self, self.save)
     self.__bookmarkRootNode = None
     self.__toolbar = None
     self.__menu = None
     self.__bookmarksModel = None
     self.__commands = QUndoStack()
     
     self.connect(self, SIGNAL("entryAdded"), 
                  self.__saveTimer.changeOccurred)
     self.connect(self, SIGNAL("entryRemoved"), 
                  self.__saveTimer.changeOccurred)
     self.connect(self, SIGNAL("entryChanged"), 
                  self.__saveTimer.changeOccurred)
開發者ID:usc-bbdl,項目名稱:R01_HSC_cadaver_system,代碼行數:22,代碼來源:BookmarksManager.py

示例13: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(HistoryManager, self).__init__(parent)
     
     self.__saveTimer = AutoSaver(self, self.save)
     self.__daysToExpire = Preferences.getHelp("HistoryLimit")
     self.__history = []
     self.__lastSavedUrl = ""
     
     self.__expiredTimer = QTimer(self)
     self.__expiredTimer.setSingleShot(True)
     self.__expiredTimer.timeout.connect(self.__checkForExpired)
     
     self.__frequencyTimer = QTimer(self)
     self.__frequencyTimer.setSingleShot(True)
     self.__frequencyTimer.timeout.connect(self.__refreshFrequencies)
     
     self.entryAdded.connect(self.__saveTimer.changeOccurred)
     self.entryRemoved.connect(self.__saveTimer.changeOccurred)
     
     self.__load()
     
     from .HistoryModel import HistoryModel
     from .HistoryFilterModel import HistoryFilterModel
     from .HistoryTreeModel import HistoryTreeModel
     
     self.__historyModel = HistoryModel(self, self)
     self.__historyFilterModel = \
         HistoryFilterModel(self.__historyModel, self)
     self.__historyTreeModel = \
         HistoryTreeModel(self.__historyFilterModel, self)
     
     super(HistoryManager, self).setDefaultInterface(self)
     self.__startFrequencyTimer()
開發者ID:Darriall,項目名稱:eric,代碼行數:38,代碼來源:HistoryManager.py

示例14: __init__

 def __init__(self, parent = None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     QWebHistoryInterface.__init__(self, parent)
     
     self.__saveTimer = AutoSaver(self, self.save)
     self.__daysToExpire = Preferences.getHelp("HistoryLimit")
     self.__history = []
     self.__lastSavedUrl = QString()
     
     self.__expiredTimer = QTimer()
     self.__expiredTimer.setSingleShot(True)
     self.connect(self.__expiredTimer, SIGNAL("timeout()"), 
                  self.__checkForExpired)
     
     self.__frequencyTimer = QTimer()
     self.__frequencyTimer.setSingleShot(True)
     self.connect(self.__frequencyTimer, SIGNAL("timeout()"), 
                  self.__refreshFrequencies)
     
     self.connect(self, SIGNAL("entryAdded"), 
                  self.__saveTimer.changeOccurred)
     self.connect(self, SIGNAL("entryRemoved"), 
                  self.__saveTimer.changeOccurred)
     
     self.__load()
     
     self.__historyModel = HistoryModel(self, self)
     self.__historyFilterModel = HistoryFilterModel(self.__historyModel, self)
     self.__historyTreeModel = HistoryTreeModel(self.__historyFilterModel, self)
     
     QWebHistoryInterface.setDefaultInterface(self)
     self.__startFrequencyTimer()
開發者ID:usc-bbdl,項目名稱:R01_HSC_cadaver_system,代碼行數:36,代碼來源:HistoryManager.py

示例15: __init__

 def __init__(self, parent=None):
     """
     Constructor
     
     @param parent reference to the parent object (QObject)
     """
     super(SpeedDial, self).__init__(parent)
     
     self.__regenerateScript = True
     
     self.__webPages = []
     self.__webFrames = []
     
     self.__initialScript = ""
     self.__thumbnailsDirectory = ""
     
     self.__thumbnailers = []
     
     self.__initialize()
     
     self.pagesChanged.connect(self.__pagesChanged)
     
     self.__saveTimer = AutoSaver(self, self.save)
     self.pagesChanged.connect(self.__saveTimer.changeOccurred)
開發者ID:Darriall,項目名稱:eric,代碼行數:24,代碼來源:SpeedDial.py


注:本文中的Utilities.AutoSaver.AutoSaver類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。