diff --git a/ghost/ghost.py b/ghost/ghost.py index 228588c..82a3cf9 100644 --- a/ghost/ghost.py +++ b/ghost/ghost.py @@ -133,7 +133,8 @@ class QTMessageProxy(object): def __init__(self, logger): self.logger = logger - def __call__(self, msgType, msg): + def __call__(self, *args): + msgType, msg = args[0], args[-1] levels = { QtDebugMsg: 'debug', QtWarningMsg: 'warn', @@ -150,7 +151,8 @@ class GhostWebPage(QWebPage): """ def __init__(self, app, ghost): self.ghost = ghost - super(GhostWebPage, self).__init__(app) + # super(GhostWebPage, self).__init__(app) + super(GhostWebPage, self).__init__() def chooseFile(self, frame, suggested_file=None): filename = Ghost._upload_file @@ -343,7 +345,7 @@ def __init__( network_access_manager_class=NetworkAccessManager, ): if not binding: - raise Exception("Ghost.py requires PySide or PyQt4") + raise Exception("Ghost.py requires PySide, PyQt4 or PyQt5") self.id = str(uuid.uuid4())