|
|
@ -83,28 +83,13 @@ if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
if x11:
|
|
|
|
if x11:
|
|
|
|
|
|
|
|
|
|
|
|
pyqt = True
|
|
|
|
import sip # needed on windows
|
|
|
|
|
|
|
|
from PyQt4 import QtGuiq
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import sip # needed on windows
|
|
|
|
from relational_gui import maingui, guihandler, about, surveyForm
|
|
|
|
from PyQt4 import QtGui
|
|
|
|
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
print >> sys.stderr, "PyQt seems to be missing, trying to use Pyside"
|
|
|
|
print >> sys.stderr, "Module relational_gui is missing.\nPlease install relational package."
|
|
|
|
from PySide import QtCore, QtGui
|
|
|
|
sys.exit(3)
|
|
|
|
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
|
|
|
|
about.version = version
|
|
|
|
surveyForm.version = version
|
|
|
|
surveyForm.version = version
|
|
|
|