"...DataObjects/inc/MantidDataObjects/MDEventWorkspace.tcc" did not exist on "dd6d71b51cf13a0b30f097443b2c486d1f4e48f6"
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=invalid-name
from __future__ import (absolute_import, division, print_function)
import PyQt4.QtGui as QtGui
def getWidgetIfOpen(name):
allWidgets = QtGui.QApplication.allWidgets()
for widget in allWidgets:
if widget.accessibleName() == name:
return widget
return None