From db529f9ba4393f94e2831a46b7f3d85df0ecba5d Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Mon, 1 Jun 2015 10:59:17 +0200 Subject: [PATCH] Qt5 moved QWebView in a different module --- relational_gui/about.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relational_gui/about.py b/relational_gui/about.py index f54f906..94f1fbd 100644 --- a/relational_gui/about.py +++ b/relational_gui/about.py @@ -21,7 +21,7 @@ import os from PyQt5 import QtCore, QtGui, QtWidgets try: # If QtWebKit is available, uses it - from PyQt5 import QtWebKit + from PyQt5 import QtWebKitWidgets webk = True except: webk = False @@ -88,7 +88,7 @@ class Ui_Dialog(object): self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tab_2) self.verticalLayout_7.setObjectName("verticalLayout_7") if (webk): - self.webView = QtWebKit.QWebView(self.tab_2) + self.webView = QtWebKitWidgets.QWebView(self.tab_2) self.webView.setUrl( QtCore.QUrl("http://ltworf.github.io/relational/allowed_expressions.html")) self.webView.setObjectName("webView")