Beispiel #1
0
from workbench.widgets.about.presenter import AboutPresenter
from workbench.widgets.settings.presenter import SettingsPresenter

# -----------------------------------------------------------------------------
# Constants
# -----------------------------------------------------------------------------

SYSCHECK_INTERVAL = 50
ORIGINAL_SYS_EXIT = sys.exit
ORIGINAL_STDOUT = sys.stdout
ORIGINAL_STDERR = sys.stderr
STACKTRACE_FILE = 'workbench_stacktrace.txt'

from workbench import requirements  # noqa

requirements.check_qt()

# -----------------------------------------------------------------------------
# Qt
# -----------------------------------------------------------------------------
from qtpy.QtCore import (QEventLoop, Qt, QCoreApplication, QPoint, QSize,
                         qVersion)  # noqa
from qtpy.QtGui import (QColor, QFontDatabase, QGuiApplication, QIcon,
                        QPixmap)  # noqa
from qtpy.QtWidgets import (QApplication, QDesktopWidget, QFileDialog,
                            QMainWindow, QSplashScreen)  # noqa
from mantidqt.algorithminputhistory import AlgorithmInputHistory  # noqa
from mantidqt.interfacemanager import InterfaceManager  # noqa
from mantidqt.widgets import manageuserdirectories  # noqa
from mantidqt.widgets.scriptrepository import ScriptRepositoryView  # noqa
from mantidqt.widgets.codeeditor.execution import PythonCodeExecution  # noqa
Beispiel #2
0
# -----------------------------------------------------------------------------
# Constants
# -----------------------------------------------------------------------------
MPL_BACKEND = 'module://workbench.plotting.backend_workbench'
SYSCHECK_INTERVAL = 50
ORIGINAL_SYS_EXIT = sys.exit
ORIGINAL_STDOUT = sys.stdout
ORIGINAL_STDERR = sys.stderr

# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
from workbench import requirements  # noqa

requirements.check_qt()

# -----------------------------------------------------------------------------
# Qt
# -----------------------------------------------------------------------------
from qtpy.QtCore import (QEventLoop, Qt, QTimer)  # noqa
from qtpy.QtGui import (QColor, QPixmap)  # noqa
from qtpy.QtWidgets import (QApplication, QDesktopWidget, QFileDialog,
                            QMainWindow, QSplashScreen)  # noqa
from mantidqt.utils.qt import plugins, widget_updates_disabled  # noqa

# Pre-application setup
plugins.setup_library_paths()


# -----------------------------------------------------------------------------