当前位置: 首页>>代码示例>>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;未经允许,请勿转载。