<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I actually looked at the ‘standalone’ example a little while ago and created a PyQt5 version (attached ’standalone.tar'), however, there seems to be a bug with the <i class="">QWebChannelAbstractTransport.messageReceived</i> signal and its arguments in that the specification says it expects a dictionary, but that raises a TypeError as follows:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Consolas" class="">Traceback (most recent call last):</font></div><div class=""><font face="Consolas" class="">  File "standalone.py", line 35, in textMessageReceived</font></div><div class=""><font face="Consolas" class="">    self.messageReceived.emit(message.object(), self)</font></div><div class=""><font face="Consolas" class="">TypeError: QWebChannelAbstractTransport.messageReceived[dict-of-str-QJsonValue, QWebChannelAbstractTransport].emit(): argument 1 has unexpected type ‘dict'</font></div></div><div class=""><br class=""></div><div class="">This is using Qt5.4/PyQt5.4 however so it may have been fixed by now, if not maybe Phil could have a look?</div><div class=""><br class=""></div><div class="">Anyways, hopefully the attached example may help with anyone wanting to use this module. Beware that the version of <i class="">qwebchannel.js</i> included only works with <=Qt5.4, you will need to get the newer version if you are using Qt5.5.</div><div class=""><br class=""></div><div class="">Hope this helps, </div><div class=""><br class=""></div><div class="">Rob</div><div class=""><br class=""></div><div class=""></div></body></html>