mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-04 17:16:54 +00:00
Merge pull request #47 from danidee10/master
This commit fixed an issue when trying to import PyQt5
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user