eric6_browser.py

branch
QtWebEngine
changeset 4840
69ee7965ba27
parent 4831
bf53c06fa0fb
child 4869
d1b3addfbd07
equal deleted inserted replaced
4839:322f2107902d 4840:69ee7965ba27
66 66
67 # make ThirdParty package available as a packages repository 67 # make ThirdParty package available as a packages repository
68 sys.path.insert(2, os.path.join(os.path.dirname(__file__), 68 sys.path.insert(2, os.path.join(os.path.dirname(__file__),
69 "ThirdParty", "Pygments")) 69 "ThirdParty", "Pygments"))
70 70
71 from PyQt5 import QtWebEngineWidgets # __IGNORE_WARNING__ 71 try:
72 from PyQt5 import QtWebEngineWidgets # __IGNORE_WARNING__
73 except ImportError:
74 from PyQt5.QtCore import QTimer
75 from PyQt5.QtWidgets import QApplication
76 from E5Gui import E5MessageBox # __IGNORE_WARNING__
77 app = QApplication([])
78 QTimer.singleShot(0, lambda: E5MessageBox.critical(
79 None,
80 "eric6 Web Browser",
81 "QtWebEngineWidgets is not installed but needed to execute the"
82 " web browser."))
83 app.exec_()
84 sys.exit(100)
72 85
73 import Globals 86 import Globals
74 from Globals import AppInfo 87 from Globals import AppInfo
75 88
76 from Toolbox import Startup 89 from Toolbox import Startup

eric ide

mercurial