eric6.py

changeset 3709
191ccdf78966
parent 3708
4fbb91fb6a31
child 3776
ccb6eacb50e5
equal deleted inserted replaced
3708:4fbb91fb6a31 3709:191ccdf78966
34 import logging 34 import logging
35 35
36 try: 36 try:
37 from PyQt5.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication 37 from PyQt5.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication
38 except ImportError: 38 except ImportError:
39 try: 39 try: # Py2
40 from tkinter import messagebox 40 import tkMessageBox as messagebox
41 messagebox.showerror(
42 "eric6 Error",
43 "PyQt5 could not be imported. Please make sure"
44 " it is installed and accessible.")
45 except ImportError: 41 except ImportError:
46 pass 42 try: # Py3
43 from tkinter import messagebox
44 except ImportError:
45 sys.exit(100)
46 messagebox.showerror(
47 "eric6 Error",
48 "PyQt5 could not be imported. Please make sure"
49 " it is installed and accessible.")
47 sys.exit(100) 50 sys.exit(100)
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

eric ide

mercurial