Qt5 moved QWebView in a different module

master
Salvo 'LtWorf' Tomaselli 2015-06-01 10:59:17 +07:00
parent a965cff14a
commit db529f9ba4
1 changed files with 2 additions and 2 deletions

@ -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")