Newer
Older
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# 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_())