QWebView: notify python when I clicked on a certain web eleemnt

Gelonida gelonida at gmail.com
Wed Feb 23 20:33:32 EST 2011


Thanks Ian,

Pls see my other reply.

Is that what you meant?

On 02/24/2011 12:25 AM, Ian Kelly wrote:
> 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 mailing list