eric6_browser.py

branch
QtWebEngine
changeset 4790
deeea3d64858
parent 4788
7076adec8ddd
child 4831
bf53c06fa0fb
equal deleted inserted replaced
4789:30e41032fed7 4790:deeea3d64858
33 # TODO: adjust this to 5.6.0 when done 33 # TODO: adjust this to 5.6.0 when done
34 MIN_QT_VERSION = "5.5.0" 34 MIN_QT_VERSION = "5.5.0"
35 35
36 from PyQt5.QtCore import qVersion 36 from PyQt5.QtCore import qVersion
37 if qVersion() < MIN_QT_VERSION: 37 if qVersion() < MIN_QT_VERSION:
38 try: # Py2 38 from PyQt5.QtCore import QTimer
39 import tkMessageBox as messagebox 39 from PyQt5.QtWidgets import QApplication
40 except ImportError: 40 from E5Gui import E5MessageBox
41 try: # Py3 41 app = QApplication([])
42 from tkinter import messagebox 42 QTimer.singleShot(0, lambda: E5MessageBox.critical(
43 except ImportError: 43 None,
44 sys.exit(100) 44 "eric6 Web Browser",
45 messagebox.showerror(
46 "eric6 Error",
47 "You need at least Qt Version {0} to execute the web browser." 45 "You need at least Qt Version {0} to execute the web browser."
48 .format(MIN_QT_VERSION)) 46 .format(MIN_QT_VERSION)))
47 app.exec_()
49 sys.exit(100) 48 sys.exit(100)
50 49
51 SettingsDir = None 50 SettingsDir = None
52 51
53 for arg in sys.argv[:]: 52 for arg in sys.argv[:]:

eric ide

mercurial