display help message if pyqt is not found

This commit is contained in:
ThomasV 2012-05-10 20:39:50 +02:00
parent 7faaf9f5ee
commit 1224610109
1 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,13 @@
import sys, time, datetime, re
# todo: see PySide
try:
import PyQt4
except:
print "could not import PyQt4"
print "on Linux systems, you may try 'sudo apt-get install python-qt4'"
sys.exit(1)
from PyQt4.QtGui import *
from PyQt4.QtCore import *