I\'m trying to interact with a google map using python. I\'ve built an application in PyQT with a QWebView. The QWebView loads a local html page as shown here:
The only difference I can see between the two things you tried is that alert() is part of the standard functions. Maybe you need a document.addmarker() instead of just addmarker() ?