Don't require QtWebEngine
This commit is contained in:
parent
bf286f8c74
commit
8e5a86fb13
@ -20,7 +20,11 @@
|
|||||||
"""Wrapper over a QWebEngineView."""
|
"""Wrapper over a QWebEngineView."""
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSlot
|
from PyQt5.QtCore import pyqtSlot
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
|
||||||
|
try:
|
||||||
|
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
||||||
|
except ImportError:
|
||||||
|
QWebEngineView = None
|
||||||
|
|
||||||
from qutebrowser.browser.tab import AbstractTab
|
from qutebrowser.browser.tab import AbstractTab
|
||||||
from qutebrowser.browser.webkit.webview import WebView
|
from qutebrowser.browser.webkit.webview import WebView
|
||||||
|
Loading…
Reference in New Issue
Block a user