Merge pull request #47 from danidee10/master

This commit fixed an issue when trying to import PyQt5
This commit is contained in:
Roman
2016-09-12 22:13:28 +03:00
committed by GitHub

View File

@@ -32,7 +32,14 @@ else:
if _import_error:
try:
from PyQt5 import QtCore
from PyQt5.QtWebKitWidgets import QWebView
# Check to see if we're running Qt > 5.5
from PyQt5.QtCore import QT_VERSION_STR
if float(QT_VERSION_STR[:3]) > 5.5:
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
else:
from PyQt5.QtWebKitWidgets import QWebView
from PyQt5.QtWidgets import QWidget, QMainWindow, QVBoxLayout, QApplication, QFileDialog
logger.debug("Using Qt5")