Newer
Older
# pylint: disable=line-too-long, invalid-name, unused-import
"""
Module to import and run the PyChop GUI for use either on the commandline or as a MantidPlot interface
"""
import sys
from PyQt4 import QtGui
from PyChop import PyChopGui
if __name__ == '__main__':
if QtGui.QApplication.instance():
app = QtGui.QApplication.instance()
app = QtGui.QApplication(sys.argv)
window = PyChopGui.PyChopGui()
window.show()
try: # check if started from within mantidplot
except ImportError:
sys.exit(app.exec_())