- Tries to launch using pyqt 1st and then pyside

- Unified about.py, now using the same code



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@314 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-10-08 17:05:07 +00:00
parent 4c5915e854
commit 954dabb447
4 changed files with 40 additions and 311 deletions

View File

@@ -81,13 +81,30 @@ if __name__ == "__main__":
x11=False
if x11:
try:
from relational_gui import maingui,guihandler, about, surveyForm
except:
print >> sys.stderr, "Module relational_gui is missing.\nPlease install relational package."
sys.exit(3)
from PyQt4 import QtGui
pyqt=True
try:
from PyQt4 import QtGui
except:
print >> sys.stderr, "PyQt seems to be missing, trying to use Pyside"
from PySide import QtCore, QtGui
pyqt=False
if pyqt:
try:
from relational_gui import maingui,guihandler, about, surveyForm
except:
print >> sys.stderr, "Module relational_gui is missing.\nPlease install relational package."
sys.exit(3)
else:
try:
from relational_pyside import maingui,guihandler, about, surveyForm
except:
print >> sys.stderr, "Module relational_pyside is missing.\nPlease install relational package."
sys.exit(3)
about.version=version
surveyForm.version=version