本文整理汇总了Python中PyQt5.QtWebKit.QWebSettings.clearMemoryCaches方法的典型用法代码示例。如果您正苦于以下问题:Python QWebSettings.clearMemoryCaches方法的具体用法?Python QWebSettings.clearMemoryCaches怎么用?Python QWebSettings.clearMemoryCaches使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWebKit.QWebSettings
的用法示例。
在下文中一共展示了QWebSettings.clearMemoryCaches方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: showDateNoWaitDetails
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def showDateNoWaitDetails(self, data):
QWebSettings.clearMemoryCaches()
QWebSettings.clearIconDatabase()
ViewGenerator.generate_css(data, self.app)
ViewGenerator.generate_html(data)
self.reload()
示例2: showData
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def showData(self, data):
QWebSettings.clearMemoryCaches()
QWebSettings.clearIconDatabase()
ViewGenerator.generate_document_view(data, self.app)
time.sleep(2)
self.load(QtCore.QUrl('file:///'+os.getcwd()+"/generated_html/document_view.html"))
示例3: showDataNoGeneration
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def showDataNoGeneration(self, data):
QWebSettings.clearMemoryCaches()
QWebSettings.clearIconDatabase()
ViewGenerator.generate_css(data, self.app)
ViewGenerator.generate_html(data)
time.sleep(2)
self.load(QtCore.QUrl('file:///'+os.getcwd()+"/generated_html/index.html"))
示例4: reset_browser
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def reset_browser(self):
"""Clear the history and reset the UI.
Called whenever the inactivity filter times out,
or when the user clicks the "finished" button in
'reset' mode.
"""
# Clear out the memory cache
QWebSettings.clearMemoryCaches()
self.browser_window.history().clear()
# self.navigation_bar.clear() doesn't do its job,
# so remove the toolbar first, then rebuild the UI.
debug("RESET BROWSER")
if self.event_filter:
self.event_filter.blockSignals(True)
if self.screensaver_active is True:
self.screensaver_active = False
self.event_filter.activity.disconnect()
if self.event_filter:
self.event_filter.blockSignals(False)
if hasattr(self, "navigation_bar"):
self.removeToolBar(self.navigation_bar)
self.build_ui()
示例5: showDataNoWait
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def showDataNoWait(self, data):
QWebSettings.clearMemoryCaches()
QWebSettings.clearIconDatabase()
ViewGenerator.generate_document_view(data, self.app)
self.reload()
示例6: showLoading
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def showLoading(self):
QWebSettings.clearMemoryCaches()
QWebSettings.clearIconDatabase()
self.load(QtCore.QUrl('file:///'+os.getcwd()+"/resources/loading.html"))
示例7: clear_caches
# 需要导入模块: from PyQt5.QtWebKit import QWebSettings [as 别名]
# 或者: from PyQt5.QtWebKit.QWebSettings import clearMemoryCaches [as 别名]
def clear_caches():
QWebSettings.clearMemoryCaches()