QWebView: notify python when I clicked on a certain web eleemnt
ian.g.kelly at gmail.com
Thu Feb 24 00:25:10 CET 2011
On Wed, Feb 23, 2011 at 4:02 PM, Gelonida <gelonida at gmail.com> wrote:
>> so make a Python object with some methods you'd wish to call, then
>> evaluate some small JS that will bind the click event on your element to
>> the method of the Python object.
> OK, but how do I make sure, that I don't override an existing binding to
> the element's click() event?
If the element has an existing binding, then create a new JS function
that calls both the Python method and the original event handler, and
bind that function to the event.
More information about the Python-list