[PyQt] QWebkit / QWebFrame

James Polk jpolk5001 at yahoo.com
Tue Jan 10 00:30:43 GMT 2012


Howdy,

I believe Guru Hans-Peter ;-) posted a collection of PyQt examples that
he converted into Python from the Qt C++ examples..

In one titled "fancybrowser.py"


There's a few lines that read...


        @QtCore.pyqtSlot()
        def submit(self):
            frame = self.ui.webView.page().mainFrame()

then


            firstName    = frame.findFirstElement("#firstname")


It appears that the function "findFirstElement()" appeared in a version of Qt
that came along after the one I'm on (4.5.3)

1) Can anyone suggest a code workaround that would accomplish same 

    that will work in 4.5.3 rather than 4.7 or 4.8 (whenever that appeared)


2) Secondly,...as an alternative, one that I hesitate to try,...is it possible for two
    versions of Qt (and I guess two versions of PyQt and Sip) to exist simultaneously?
    Using one version for *this* and another version for *that* ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120109/f862a809/attachment.html>


More information about the PyQt mailing list