eric5.py

branch
5_4_x
changeset 3711
a48ba9505621
parent 3160
209a07d7e401
equal deleted inserted replaced
3707:ea1db3ec60b3 3711:a48ba9505621
16 import traceback 16 import traceback
17 import io 17 import io
18 import time 18 import time
19 import logging 19 import logging
20 20
21 from PyQt4.QtCore import qWarning, QLibraryInfo, QTimer 21 try:
22 from PyQt4.QtGui import QApplication 22 from PyQt4.QtCore import qWarning, QLibraryInfo, QTimer
23 from PyQt4.QtGui import QApplication
24 except ImportError:
25 try:
26 from tkinter import messagebox
27 messagebox.showerror(
28 "eric5 Error",
29 "PyQt4 could not be imported. Please make sure"
30 " it is installed and accessible.")
31 except ImportError:
32 pass
33 sys.exit(100)
23 34
24 # some global variables needed to start the application 35 # some global variables needed to start the application
25 args = None 36 args = None
26 mainWindow = None 37 mainWindow = None
27 splash = None 38 splash = None

eric ide

mercurial