31 import os |
31 import os |
32 import traceback |
32 import traceback |
33 import time |
33 import time |
34 import logging |
34 import logging |
35 |
35 |
36 from PyQt5.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication |
36 try: |
|
37 from PyQt5.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication |
|
38 except ImportError: |
|
39 try: |
|
40 from tkinter import 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: |
|
46 pass |
|
47 sys.exit(100) |
37 |
48 |
38 # some global variables needed to start the application |
49 # some global variables needed to start the application |
39 args = None |
50 args = None |
40 mainWindow = None |
51 mainWindow = None |
41 splash = None |
52 splash = None |