eric6/eric6_browser.py

branch
without_py2_and_pyqt4
changeset 7201
6b42677d7043
parent 7198
684261ef2165
child 7229
53054eb5b15a
equal deleted inserted replaced
7200:ebab8ba287e6 7201:6b42677d7043
26 import sip 26 import sip
27 sip.setdestroyonexit(False) 27 sip.setdestroyonexit(False)
28 except AttributeError: 28 except AttributeError:
29 pass 29 pass
30 30
31 from Globals import qVersionTuple
32
33 app = None 31 app = None
34
35
36 if qVersionTuple() < (5, 6, 0):
37 if "--quiet" not in sys.argv:
38 from PyQt5.QtCore import QTimer
39 from PyQt5.QtWidgets import QApplication
40 from E5Gui import E5MessageBox
41 app = QApplication([])
42 QTimer.singleShot(0, lambda: E5MessageBox.critical(
43 None,
44 "eric6 Web Browser",
45 "You need at least Qt Version 5.6.0 to execute the web browser.")
46 )
47 app.exec_()
48 sys.exit(100)
49
50 SettingsDir = None 32 SettingsDir = None
51 33
52 for arg in sys.argv[:]: 34 for arg in sys.argv[:]:
53 if arg.startswith("--config="): 35 if arg.startswith("--config="):
54 import Globals 36 import Globals

eric ide

mercurial