-
Conor Finn authoredConor Finn authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Engineering_Diffraction_2.py 948 B
# 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 Engineering.gui.engineering_diffraction.engineering_diffraction import EngineeringDiffractionGui
from qtpy import QtCore
if 'engineering_diffraction' in globals():
eng_diff = globals()['engineering_diffraction']
if not eng_diff.isHidden():
eng_diff.setWindowState(
eng_diff.windowState(
) & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
eng_diff.activateWindow()
else:
eng_diff = EngineeringDiffractionGui()
eng_diff.show()
else:
eng_diff = EngineeringDiffractionGui()
eng_diff.show()