Esempio n. 1
0
    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"))
Esempio n. 2
0
    def showDataNoWait(self, data):
        QWebSettings.clearMemoryCaches()
        QWebSettings.clearIconDatabase()

        ViewGenerator.generate_document_view(data, self.app)
        self.reload()