QtWebKit makes it very easy to expose methods and properties implemented in Python to JavaScript. Qt will automatically expose Qt-slots and Qt-properties to a JavaScript when a QObject is made available in the frame's JavaScript context. I think the code speaks for itself import sys from PyQt4 import QtCore, QtGui, QtWebKit """Html snippet.""" html = """ <html><body> <center> <script language="Jav

