def start():
    app, within_mantid = get_qapplication()

    app.setApplicationName("Mantid Reduction")
    reducer = ReductionGUI()
    reducer.setup_layout(load_last=True)
    reducer.show()
    if not within_mantid:
        sys.exit(app.exec_())
def start():
    app, within_mantid = get_qapplication()

    app.setApplicationName("Mantid Reduction")
    reducer = ReductionGUI()
    reducer.setup_layout(load_last=True)
    reducer.show()
    if not within_mantid:
        sys.exit(app.exec_())
Beispiel #3
0
# 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 PyChop import PyChopGui
from gui_helper import set_matplotlib_backend, get_qapplication
set_matplotlib_backend()  # must be called before anything tries to use matplotlib

app, within_mantid = get_qapplication()
window = PyChopGui.PyChopGui()
window.show()
if not within_mantid:
    sys.exit(app.exec_())
Beispiel #4
0
# 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=invalid-name
from __future__ import (absolute_import, division, print_function)
from TofConverter import converterGUI
from gui_helper import get_qapplication

app, within_mantid = get_qapplication()

reducer = converterGUI.MainWindow(
)  #the main ui class in this file is called MainWindow
reducer.show()
if not within_mantid:
    app.exec_()