eric7/eric7.py

branch
eric7
changeset 8617
3ea0b67205b6
parent 8616
651cc4e319fb
child 8622
149d51870ce8
equal deleted inserted replaced
8616:651cc4e319fb 8617:3ea0b67205b6
40 "eric7 Error", 40 "eric7 Error",
41 "PyQt could not be imported. Please make sure" 41 "PyQt could not be imported. Please make sure"
42 " it is installed and accessible.") 42 " it is installed and accessible.")
43 sys.exit(100) 43 sys.exit(100)
44 44
45 with contextlib.suppress(ImportError): 45 # TODO: remove this workaround once rc0 issue is fixed
46 from PyQt6 import QtWebEngineWidgets 46 # Workaround for a bug in Qt 6.2.0 rc0 on non-Linux
47 # __IGNORE_WARNING__ __IGNORE_EXCEPTION__ 47 if sys.platform.startswith("linux"):
48 with contextlib.suppress(ImportError):
49 from PyQt6 import QtWebEngineWidgets
50 # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
48 51
49 # some global variables needed to start the application 52 # some global variables needed to start the application
50 args = None 53 args = None
51 mainWindow = None 54 mainWindow = None
52 splash = None 55 splash = None

eric ide

mercurial