Skip to content
Snippets Groups Projects
PyChop.py 592 B
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 QtGui.QApplication.instance():
        app = QtGui.QApplication.instance()
        app = QtGui.QApplication(sys.argv)
    window = PyChopGui.PyChopGui()
    window.show()
    try: # check if started from within mantidplot
        import mantidplot # noqa
    except ImportError:
        sys.exit(app.exec_())