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"))
def showDataNoWait(self, data): QWebSettings.clearMemoryCaches() QWebSettings.clearIconDatabase() ViewGenerator.generate_document_view(data, self.app) self.reload()