Gtk equivalent to addToJavaScriptWindowObject
Hi folks,
I’m migrating a PySide Qt/Webkit application to PyGtk Webkit application, but I have a problem on the window-object-cleared callback.
I need to add my Python object to window object as listener. Using Qt, I did: self.addToJavaScriptWindowObject(listener_name, listener), but I cannot found the Gtk equivalent.
I realize the window object is passed as parameter to the callback, but as a gpointer. I just don’t know what to do with it.
How can I add my listener to the window object using pygtk?
|