I'm using QGIS 2.18.16 and following the training manual, and I'm stuck on 6.4.5.
I've followed the example to produce an action that will search wiki, but I receive a syntax error as listed below:
An error occurred during execution of the following code:
from PyQt4.QtCore import QUrl; from PyQt4.QtWebKit import QWebView; myWV = QWebView(None); myWV.load(QUrl(’http://wikipedia.org/wiki/Swellendam’)); myWV.show()
File "", line 1
from PyQt4.QtCore import QUrl; from PyQt4.QtWebKit import QWebView; myWV = QWebView(None); myWV.load(QUrl(’http://wikipedia.org/wiki/Swellendam’)); myWV.show()
^
SyntaxError: invalid syntax
The code: from PyQt4.QtCore import QUrl; from PyQt4.QtWebKit import QWebView; myWV = QWebView(None); myWV.load(QUrl(’http://wikipedia.org/wiki/[% "name" %]’)); myWV.show()
Any thoughts on where I've gone wrong?
'
marks. – Spacedman Feb 20 '18 at 15:01