예제 #1
0
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_())
예제 #2
0
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_())
예제 #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 & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
# pylint: disable=invalid-name
import sys
from mantidqt.gui_helper import set_matplotlib_backend, get_qapplication
set_matplotlib_backend(
)  # must be called before anything tries to use matplotlib
from mantidqtinterfaces.FilterEvents import eventFilterGUI  # noqa

app, within_mantid = get_qapplication()

if 'workbench' in sys.modules:
    from workbench.config import get_window_config

    parent, flags = get_window_config()
else:
    parent, flags = None, None
reducer = eventFilterGUI.MainWindow(
    parent, flags)  #the main ui class in this file is called MainWindow
reducer.show()
if not within_mantid:
    sys.exit(app.exec_())
예제 #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)
import sys
from mantidqt.gui_helper import set_matplotlib_backend, get_qapplication
set_matplotlib_backend()  # must be called before anything tries to use matplotlib
from FilterEvents import eventFilterGUI  # noqa

app, within_mantid = get_qapplication()

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