# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt AlgorithmDialog = import_qt('.._common', package='mantidqt.dialogs', attr='AlgorithmDialog')
# # Copyright © 2017 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 + # This file is part of the mantidqt package # from mantid.api import AnalysisDataService as ADS from mantidqt.utils.qt import import_qt # local imports from mantidqt.widgets.instrumentview.presenter import InstrumentViewPresenter # Import widget from C++ wrappers _InstrumentWidgetEncoder = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidgetEncoder') _InstrumentWidgetDecoder = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidgetDecoder') class InstrumentViewAttributes(object): # WARNING: If you delete a tag from here instead of adding a new one, it will make old project files obsolete so # just add an extra tag to the list e.g. ["InstrumentWidget", "IWidget"] _tags = ["InstrumentView", "InstrumentWidget"] class InstrumentViewDecoder(InstrumentViewAttributes): def __init__(self): super(InstrumentViewDecoder, self).__init__()
# This file is part of the mantidqt package # std imports from typing import Union import sys import numpy as np from mantidqt.utils.qt import import_qt from matplotlib.collections import QuadMesh from matplotlib.image import AxesImage from .lineplots import CursorTracker, cursor_info # Constants DBLMAX = sys.float_info.max ImageInfoWidget = import_qt('.._common', 'mantidqt.widgets', 'ImageInfoWidget') class ImageInfoTracker(CursorTracker): def __init__(self, image: Union[AxesImage, QuadMesh], transpose_xy: bool, widget: ImageInfoWidget): """ Update the image that the widget refers too. :param: An AxesImage or Mesh instance to track :param: transpose_xy: If true the cursor position should be transposed before sending to the table update """ super().__init__(image_axes=image.axes, autoconnect=False) self._image = image self._transpose_xy = transpose_xy self._widget = widget
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt InstrumentSelector = import_qt('.._common', 'mantidqt.widgets', 'InstrumentSelector')
# it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt _AlgorithmInputHistory = import_qt('._common', 'mantidqt', 'AlgorithmInputHistory') def _toQSettings(settings): '''Utility function to convert supplied settings object to a qtpy.QtCore.QSettings ''' try: # workbench.config.user return settings.qsettings except: # must be a QSettings already return settings class AlgorithmInputHistory(object): '''Wrapper class around MantidQtWidgets::Common::AlgorithmInputHistory ''' _singleton = _AlgorithmInputHistory.Instance()
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt Cell = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'Cell') JobTreeView = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'JobTreeView') JobTreeViewSignalAdapter = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'JobTreeViewSignalAdapter') # RowLocation must be accessed differently as it is wrapped in a SIP namespace class RowLocation = import_qt('..._common', 'mantidqt.widgets.jobtreeview').MantidQt.MantidWidgets.Batch.RowLocation
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt Hint = import_qt('._common', 'mantidqt', 'Hint') HintStrategy = import_qt('._common', 'mantidqt', 'HintStrategy')
builtins = __main__.__builtins__ import copy import os from io import BytesIO from lib2to3.pgen2.tokenize import detect_encoding from qtpy.QtCore import QObject, Signal from qtpy.QtWidgets import QApplication from mantidqt.utils import AddedToSysPath from mantidqt.utils.asynchronous import AsyncTask, BlockingAsyncTaskWithCallback from mantidqt.utils.qt import import_qt # Core object to execute the code with optinal progress tracking CodeExecution = import_qt('..._common', 'mantidqt.widgets.codeeditor', 'CodeExecution') EMPTY_FILENAME_ID = '<string>' FILE_ATTR = '__file__' def _get_imported_from_future(code_str): """ Parse the given code and return a list of names that are imported from __future__. :param code_str: The code to parse :return list: List of names that are imported from __future__ """ future_imports = [] try: code_str = code_str.encode(
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # # flake8: noqa from mantidqt.utils.qt import import_qt FunctionBrowser = import_qt('.._common', 'mantidqt.widgets', 'FunctionBrowser')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2021 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from mantidqt.utils.qt import import_qt MuonPeriodInfo = import_qt('..._common', 'mantidqt.widgets.muonperiodinfo', 'MuonPeriodInfo')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) # 3rd party imports # local imports from mantidqt.utils.qt import import_qt CodeEditor = import_qt('..._common', 'mantidqt.widgets.codeeditor', 'ScriptEditor')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from mantidqt.utils.qt import import_qt DataSelector = import_qt('..._common', 'mantidqt.widgets.dataselector', 'DataSelector')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt MantidTreeModel = import_qt('.._common', 'mantidqt.widgets.workspacewidget', 'MantidTreeModel')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # from mantidqt.utils.qt import import_qt BaseDecoder = import_qt('._common', 'mantidqt', 'BaseDecoder')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt FileFinderWidget = import_qt('..._common', 'mantidqt.widgets.filefinderwidget', 'FileFinderWidget')
# NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # from __future__ import (absolute_import, division, print_function, unicode_literals) from mantid.api import AnalysisDataService as ADS from mantidqt.utils.qt import import_qt # local imports from mantidqt.widgets.instrumentview.presenter import InstrumentViewPresenter # Import widget from C++ wrappers _InstrumentWidgetEncoder = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidgetEncoder') _InstrumentWidgetDecoder = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidgetDecoder') class InstrumentViewAttributes(object): # WARNING: If you delete a tag from here instead of adding a new one, it will make old project files obsolete so # just add an extra tag to the list e.g. ["InstrumentWidget", "IWidget"] tags = ["InstrumentView", "InstrumentWidget"] class InstrumentViewDecoder(InstrumentViewAttributes): def __init__(self): super(InstrumentViewDecoder, self).__init__() self.widget_decoder = _InstrumentWidgetDecoder()
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantid workbench. # # from __future__ import (absolute_import, unicode_literals) from mantidqt.utils.qt import import_qt AlgorithmHistoryWindow = import_qt('..._common', 'mantidqt.widgets.workspacewidget', 'AlgorithmHistoryWindow')
# """ Contains the Python wrapper class for the C++ instrument widget """ # 3rdparty imports from qtpy.QtCore import Qt, Signal, Slot from qtpy.QtWidgets import QVBoxLayout, QWidget # local imports from mantidqt.utils.qt import import_qt # import widget class from C++ wrappers from mantidqt.widgets.observers.observing_view import ObservingView # _instrumentview.sip --> _instrumentview InstrumentWidget = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidget') class InstrumentView(QWidget, ObservingView): """ Defines a Window wrapper for the instrument widget. Sets the Qt.Window flag and window title. Holds a reference to the presenter and keeps it alive for the duration that the window is open """ _presenter = None _widget = None close_signal = Signal() def __init__(self, parent, presenter, name, window_flags=Qt.Window):
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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.QtCore import Qt, Slot, QObject from mantid.api import AlgorithmManager, AnalysisDataService, ITableWorkspace from mantidqt.utils.qt import import_qt PropertyHandler = import_qt('.._common', 'mantidqt.widgets', 'PropertyHandler') class FitPropertyBrowserPlotInteraction(QObject): """ Defines an interface between the FitPropertyBrowser and the Matplotlib plot """ def __init__(self, fit_browser, canvas, parent=None): super().__init__(parent) self.fit_browser = fit_browser self.canvas = canvas self._connect_signals() # Initialise state storage self.guess_line = None self.guess_all_line = None self.guess_line_handlers = None self.guess_lines = {} def _connect_signals(self):
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantid workbench. # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt get_icon = import_qt('._icons', 'mantidqt.icons', 'getIcon')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) from mantidqt.utils.qt import import_qt MessageDisplay = import_qt('.._common', 'mantidqt.widgets', 'MessageDisplay')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt UserSubWindowFactory = import_qt('._common', 'mantidqt', 'UserSubWindowFactory')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # # flake8: noqa from mantidqt.utils.qt import import_qt FunctionBrowser = import_qt('.._common', 'mantidqt.widgets', 'FunctionBrowser')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt UserSubWindow = import_qt('._common', 'mantidqt', 'UserSubWindow')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from mantidqt.utils.qt import import_qt WorkspaceSelector = import_qt('..._common', 'mantidqt.widgets.workspaceselector', 'WorkspaceSelector')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt Hint = import_qt('._common', 'mantidqt', 'Hint') HintStrategy = import_qt('._common', 'mantidqt', 'HintStrategy')
# This file is part of the mantidqt package # # from __future__ import (print_function, absolute_import, unicode_literals) from qtpy.QtCore import Qt, Signal, Slot from mantid import logger from mantid.api import AlgorithmManager from mantid.simpleapi import mtd from mantidqt.utils.qt import import_qt from .interactive_tool import FitInteractiveTool BaseBrowser = import_qt('.._common', 'mantidqt.widgets', 'FitPropertyBrowser') class FitPropertyBrowserBase(BaseBrowser): def __init__(self, parent=None): super(FitPropertyBrowserBase, self).__init__(parent) self.init() class FitPropertyBrowser(FitPropertyBrowserBase): """ A wrapper around C++ FitPropertyBrowser with added graphical peak editing tool. """ closing = Signal()
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # # 3rd party imports # local imports from mantidqt.utils.qt import import_qt CodeEditor = import_qt('..._common', 'mantidqt.widgets.codeeditor', 'ScriptEditor')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt Cell = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'Cell') JobTreeView = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'JobTreeView') JobTreeViewSignalAdapter = import_qt('..._common', 'mantidqt.widgets.jobtreeview', 'JobTreeViewSignalAdapter') # RowLocation must be accessed differently as it is wrapped in a SIP namespace class RowLocation = import_qt('..._common', 'mantidqt.widgets.jobtreeview').MantidQt.MantidWidgets.Batch.RowLocation
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from mantidqt.utils.qt import import_qt FittingMode = import_qt('..._common', 'mantidqt.widgets.fitscriptgenerator', 'FittingMode') FitScriptGeneratorView = import_qt('..._common', 'mantidqt.widgets.fitscriptgenerator', 'FitScriptGeneratorView') FitScriptGeneratorModel = import_qt('..._common', 'mantidqt.widgets.fitscriptgenerator', 'FitScriptGeneratorModel') FitScriptGeneratorPresenter = import_qt('..._common', 'mantidqt.widgets.fitscriptgenerator', 'FitScriptGeneratorPresenter')
# SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) from qtpy.QtWidgets import QAction, QActionGroup from qtpy.QtGui import QFont from mantidqt.utils.qt import import_qt SHOW_FRAMEWORK_OUTPUT_KEY = "MessageDisplay/ShowFrameworkOutput" SHOW_ALL_SCRIPT_OUTPUT_KEY = "MessageDisplay/ShowAllScriptOutput" SHOW_ACTIVE_SCRIPT_OUTPUT_KEY = "MessageDisplay/ShowActiveScriptOutput" MessageDisplay_cpp = import_qt('.._common', 'mantidqt.widgets', 'MessageDisplay') class Priority: Fatal = 2 Error = 3 Warning = 4 Notice = 5 Information = 6 Debug = 7 class MessageDisplay(MessageDisplay_cpp): def __init__(self, font=QFont(), parent=None): super(MessageDisplay, self).__init__(font, parent)
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt GenericDialog = import_qt('.._common', package='mantidqt.dialogs', attr='GenericDialog')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) from mantidqt.utils.qt import import_qt WorkspaceTreeWidget = import_qt('..._common', 'mantidqt.widgets.workspacewidget', 'WorkspaceTreeWidgetSimple')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import) from mantidqt.utils.qt import import_qt InterfaceManager = import_qt('._common', 'mantidqt', 'InterfaceManager')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # # flake8: noqa from mantidqt.utils.qt import import_qt AlgorithmProgressWidget = import_qt('.._common', package='mantidqt.widgets', attr='AlgorithmProgressWidget')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # import icon resources from mantidqt import resources # noqa: F401 from mantidqt.utils.qt import import_qt InterfaceManager = import_qt('._common', 'mantidqt', 'InterfaceManager')
# SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from qtpy.QtCore import Qt, Signal, Slot import matplotlib.pyplot from mantid import logger from mantid.api import AlgorithmManager, AnalysisDataService, ITableWorkspace, MatrixWorkspace from mantidqt.plotting.functions import plot from mantidqt.utils.qt import import_qt from .interactive_tool import FitInteractiveTool BaseBrowser = import_qt('.._common', 'mantidqt.widgets', 'FitPropertyBrowser') class FitPropertyBrowserBase(BaseBrowser): def __init__(self, parent=None): super(FitPropertyBrowserBase, self).__init__(parent) self.init() class FitPropertyBrowser(FitPropertyBrowserBase): """ A wrapper around C++ FitPropertyBrowser with added graphical peak editing tool. """ closing = Signal()
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2019 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt FileFinder = import_qt('..._common', 'mantidqt.widgets.filefinder', 'MWRunFiles')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) from mantidqt.utils.qt import import_qt ManageUserDirectories = import_qt('.._common', 'mantidqt.widgets', 'ManageUserDirectories')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # This file is part of the mantidqt package # # from __future__ import (absolute_import, unicode_literals) # 3rd party imports # local imports from mantidqt.utils.qt import import_qt # Import widget from C++ wrappers InstrumentWidget = import_qt('._instrumentview', 'mantidqt.widgets.instrumentview', 'InstrumentWidget')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt WorkspaceTreeWidget = import_qt('..._common', 'mantidqt.widgets.workspacewidget', 'WorkspaceTreeWidgetSimple')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt MantidTreeModel = import_qt('.._common', 'mantidqt.widgets.workspacewidget', 'MantidTreeModel')
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright © 2017 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 + # This file is part of the mantidqt package # # from mantidqt.utils.qt import import_qt ManageUserDirectories = import_qt('.._common', 'mantidqt.widgets', 'ManageUserDirectories')