On Wed, Feb 23, 2011 at 4:02 PM, Gelonida <gelon...@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. -- http://mail.python.org/mailman/listinfo/python-list