Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Xristos Xristoou
tell some solution ?yes you are correct for some seconds show me the mark but 
only for some seconds.can i update my pyqt4 to show me the mark ?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Anssi Saari
Xristos Xristoou  writes:

> I want to create a simple python app using pyqt,QWebView and google maps with 
> markers.
>
> The problem is that,the markers does not load inside the QWebView, as
> you can see they load just fine in the browser.

Well, since you got a javascript error, maybe Qt4 doesn't support the
version of javascript Google uses today? Qt4 was released over a decade
ago.

I tried with PyQt5 and the page loads and a marker shows up. It then
disappears as Google puts up a couple of popups. There's a complaint
about browser capabilities and also a privacy note from Google.

-- 
https://mail.python.org/mailman/listinfo/python-list


PyQt4 QWebView cant load google maps markers

2018-03-22 Thread Xristos Xristoou

I want to create a simple python app using pyqt,QWebView and google maps with 
markers. 

The problem is that,the markers does not load inside the QWebView, as you can 
see they load just fine in the browser. 


here the simple code : 

 import sys 
 from PyQt4.QtCore import * 
 from PyQt4.QtGui import * 
 from PyQt4.QtWebKit import * 
 import os 
 app = QApplication(sys.argv) 
 web_view= dialog.findChild(QWebView,"webView") 
 
google='https://www.google.gr/maps/place/Granite+Mountain+Hotshots+Memorial+State+Park/@34.1749572,-112.850308,12.78z/data=!4m13!1m7!3m6!1s0x872b08ebcb4c186b:0x423927b17fc1cd71!2zzpHPgc65zrbPjM69zrEsIM6Xzr3Pic68zq3Ovc61z4IgzqDOv867zrnPhM61zq_Otc-C!3b1!8m2!3d34.0489281!4d-111.0937311!3m4!1s0x80d330577faee965:0x66d75aef24890ae1!8m2!3d34.2032843!4d-112.7746582?hl=el'
 
 web_view2.load(QUrl(google)) 
 web_view2.show() 
 sys.exit(app.exec_()) 


error message : 
right click and select Inspect, then go to console and observe the messages 
console I take this error : 


TypeError: 'undefined' is not a function (evaluating 'this.D.bind(this)') 
marker.js:58 




Any idea how to can fix that ? 
I need to add more settings to QWebView to work google maps with markers ?
-- 
https://mail.python.org/mailman/listinfo/python-list


PyQt4 QWebView cant load google maps markers

2018-03-22 Thread Xristos Xristoou


I want to create a simple python app using pyqt,QWebView and google maps with 
markers.

The problem is that,the markers does not load inside the QWebView, as you can 
see they load just fine in the browser. 


here the simple code :

 import sys
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from PyQt4.QtWebKit import *
 import os
 app = QApplication(sys.argv)
 web_view= dialog.findChild(QWebView,"webView")
 
google='https://www.google.gr/maps/place/Granite+Mountain+Hotshots+Memorial+State+Park/@34.1749572,-112.850308,12.78z/data=!4m13!1m7!3m6!1s0x872b08ebcb4c186b:0x423927b17fc1cd71!2zzpHPgc65zrbPjM69zrEsIM6Xzr3Pic68zq3Ovc61z4IgzqDOv867zrnPhM61zq_Otc-C!3b1!8m2!3d34.0489281!4d-111.0937311!3m4!1s0x80d330577faee965:0x66d75aef24890ae1!8m2!3d34.2032843!4d-112.7746582?hl=el'
 web_view2.load(QUrl(google))
 web_view2.show()
 sys.exit(app.exec_())


error message :
right click and select Inspect, then go to console and observe the messages 
console I take this error :


TypeError: 'undefined' is not a function (evaluating 'this.D.bind(this)') 
marker.js:58 




Any idea how to can fix that ?
I need to add more settings to QWebView to work google maps with markers ?
-- 
https://mail.python.org/mailman/listinfo/python-list