Improved error messages about missing dependencies

This commit is contained in:
Paweł Jastrzębski
2013-11-06 13:49:12 +01:00
parent 5b44e4bddd
commit 1b1ed7c4ab
5 changed files with 31 additions and 1 deletions
+6
View File
@@ -30,6 +30,12 @@ try:
from PyQt4 import QtCore, QtGui, QtNetwork
except ImportError:
print "ERROR: PyQT4 is not installed!"
if sys.platform.startswith('linux'):
import Tkinter
import tkMessageBox
importRoot = Tkinter.Tk()
importRoot.withdraw()
tkMessageBox.showerror("KCC - Error", "PyQT4 is not installed!")
exit(1)
from kcc import KCC_gui
from multiprocessing import freeze_support