Indeed in the code there is evaluateJavaScript instead of evaluatejava-script .
Christophe. ============================================================================================ # -*- coding: utf-8 -*- #!/usr/bin/env python # Sources # http://www.mail-archive.com/[email protected]/msg17247.html # "jQuery" J. Chhaffer & K. Swedberg Ed. : PEARSON import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * app = QApplication(sys.argv) myWebKit = QWebView() myWebKit.show() myWebKit.setUrl(QUrl("simpleHtmlPage.html")) myWebKit.page().mainFrame().evaluatejava-script(open('jquery-1.3.2.js').read()) # There is ROUGE in the HTML source. myWebKit.page().mainFrame().evaluatejava-script("""$(document).ready(function(){$(".red").css("color", "#ff0000");});""") sys.exit(app.exec_())
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
