the simplest example of loading jquery.js (geti it from and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to change the background color into red:

run it in python interactive shell or better in ipython:

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *

myWebKit = QWebView()

{ $("body").css("background", "#f00");});""")
PyQt mailing list

Reply via email to