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 |