# Path: sloth/gui/deprecated/console.py
# HAS_NUMPY = False
#     HAS_NUMPY = True
# HAS_MATPLOTLIB = False
#     HAS_MATPLOTLIB = True
# HAS_SILX_QT = False
#     HAS_SILX_QT = True
# HAS_XRAYLIB = False
#     HAS_XRAYLIB = True
# HAS_LARCH = False
#     HAS_LARCH = True
# SLOTH_BANNER = "Sloth console, version {0}\n".format(sloth.__version__)
# class customIPythonWidget(IPythonWidget):
#     def __init__(self, *args, **kwargs):
# def main():
# 
# Path: sloth/gui/deprecated/console.py
# class customIPythonWidget(IPythonWidget):
#     """customized IPythonWidget"""
# 
#     def __init__(self, *args, **kwargs):
#         super(customIPythonWidget, self).__init__(custom_banner=SLOTH_BANNER,\
#                                                   *args, **kwargs)
# 
#         self.pushVariables({'os': os,
#                             'sys': sys,
#                             'np': np,
#                             'math': math})


import os
import sys
import sloth
from silx.gui import qt
from sloth.gui.deprecated.console import (_pushDict, _pushInfos,
                                       _slothKit)
from sloth.gui.deprecated.console import customIPythonWidget
from sloth.gui.deprecated.plot1D import SlothPlot1D
                              'sloth_main_common.ui')
        qt.loadUi(uiPath, baseinstance=self, package='sloth.gui')
        logoPath = os.path.join(sloth._resourcesPath, 'logo',
                                'xraysloth_logo_03.svg')
        self.setWindowTitle('Sloth {0}'.format(sloth.__version__))
        self.setWindowIcon(qt.QIcon(logoPath))

        # About dialog
        self.aboutDialog = AboutDialog(parent=self)
        self.actionAbout.triggered.connect(self.openAboutDialog)

        # EXIT with C-q
        # self.actionExit = qt.QAction(('E&xit'), self)
        self.actionExit.setShortcut(qt.QKeySequence("Ctrl+Q"))
        # self.addAction(self.actionExit)
        self.actionExit.triggered.connect(self.confirmClose)

        # OPEN with C-o
        # self.actionOpen = qt.QAction(('Open'), self)
        self.actionOpen.setShortcut(qt.QKeySequence("Ctrl+O"))
        # self.addAction(self.actionOpen)
        self.actionOpen.triggered.connect(self.selectFile)

        # CONSOLE WIDGET
        self.consoleWidget = customIPythonWidget()
        self.consoleLayout.addWidget(self.consoleWidget)
        self.consoleWidget.pushVariables(_pushDict)
        for info in _pushInfos:
            self.tabInfoListWidget.addItem(info)
        self.consoleWidget.pushVariables(_slothKit)

# Path: sloth/gui/deprecated/console.py
# HAS_NUMPY = False
#     HAS_NUMPY = True
# HAS_MATPLOTLIB = False
#     HAS_MATPLOTLIB = True
# HAS_SILX_QT = False
#     HAS_SILX_QT = True
# HAS_XRAYLIB = False
#     HAS_XRAYLIB = True
# HAS_LARCH = False
#     HAS_LARCH = True
# SLOTH_BANNER = "Sloth console, version {0}\n".format(sloth.__version__)
# class customIPythonWidget(IPythonWidget):
#     def __init__(self, *args, **kwargs):
# def main():
# 
# Path: sloth/gui/deprecated/console.py
# class customIPythonWidget(IPythonWidget):
#     """customized IPythonWidget"""
# 
#     def __init__(self, *args, **kwargs):
#         super(customIPythonWidget, self).__init__(custom_banner=SLOTH_BANNER,\
#                                                   *args, **kwargs)
# 
#         self.pushVariables({'os': os,
#                             'sys': sys,
#                             'np': np,
#                             'math': math})


# Path: sloth/gui/deprecated/sloth_main.py
import os
import sys
import sloth
from silx.gui import qt
from sloth.gui.deprecated.console import (_pushDict, _pushInfos,
                                       _slothKit)
from sloth.gui.deprecated.console import customIPythonWidget
from sloth.gui.deprecated.plot1D import SlothPlot1D

                              'sloth_main_common.ui')
        qt.loadUi(uiPath, baseinstance=self, package='sloth.gui')
        logoPath = os.path.join(sloth._resourcesPath, 'logo',
                                'xraysloth_logo_03.svg')
        self.setWindowTitle('Sloth {0}'.format(sloth.__version__))
        self.setWindowIcon(qt.QIcon(logoPath))

        # About dialog
        self.aboutDialog = AboutDialog(parent=self)
        self.actionAbout.triggered.connect(self.openAboutDialog)

        # EXIT with C-q
        # self.actionExit = qt.QAction(('E&xit'), self)
        self.actionExit.setShortcut(qt.QKeySequence("Ctrl+Q"))
        # self.addAction(self.actionExit)
        self.actionExit.triggered.connect(self.confirmClose)

        # OPEN with C-o
        # self.actionOpen = qt.QAction(('Open'), self)
        self.actionOpen.setShortcut(qt.QKeySequence("Ctrl+O"))
        # self.addAction(self.actionOpen)
        self.actionOpen.triggered.connect(self.selectFile)

        # CONSOLE WIDGET
        self.consoleWidget = customIPythonWidget()
        self.consoleLayout.addWidget(self.consoleWidget)
        self.consoleWidget.pushVariables(_pushDict)
        for info in _pushInfos:
            self.tabInfoListWidget.addItem(info)
        self.consoleWidget.pushVariables(_slothKit)

        for _key in _slothKit.keys():