forked from npshub/mantid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Elemental_Analysis.py
37 lines (33 loc) · 1.36 KB
/
Elemental_Analysis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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 +
from qtpy import QtCore
from Muon.GUI.ElementalAnalysis.elemental_analysis import ElementalAnalysisGui
from Muon.GUI.Common.usage_report import report_interface_startup
import sys
Name = "Elemental_Analysis"
if 'workbench' in sys.modules:
from workbench.config import get_window_config
parent, flags = get_window_config()
else:
parent, flags = None, None
if 'Elemental_Analysis' in globals():
Elemental_Analysis = globals()['Elemental_Analysis']
if not Elemental_Analysis.isHidden():
Elemental_Analysis.setWindowState(
Elemental_Analysis.windowState(
) & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
Elemental_Analysis.activateWindow()
else:
Elemental_Analysis = ElementalAnalysisGui(parent, flags)
report_interface_startup(Name)
Elemental_Analysis.resize(700, 700)
Elemental_Analysis.show()
else:
Elemental_Analysis = ElementalAnalysisGui(parent, flags)
report_interface_startup(Name)
Elemental_Analysis.resize(700, 700)
Elemental_Analysis.show()