Source code for openalea.oalab.config.gui

# -*- coding: utf-8 -*-

__all__ = ['MainWindowConfig']


try:
    # Works for IPython 2.x
    from IPython.config.configurable import Configurable
except ImportError:
    # Works for IPython 1.x
    from IPython.config.application import Configurable
from IPython.utils.traitlets import List, Bool, Enum

enum_position = Enum(['top', 'bottom']) # TODO: check trait declaration

[docs]class MainWindowConfig(Configurable): project = Bool(True, config=True, help="Display project tree view") project_manager = Bool(True, config=True, help="Display projects available") packages = Bool(True, config=True, help="Display package manager") packagecategories = Bool(True, config=True, help="Display package manager sorted by categories") packagesearch = Bool(True, config=True, help="Display search widget for package manager") controlpanel = Bool(True, config=True, help="Display control panel") viewer3d = Bool(True, config=True, help="Display 3D Viewer") logger = Bool(True, config=True, help="Display logger (usefull to debug)") helpwidget = Bool(True, config=True, help="Display Help widget") shell = Bool(True, config=True, help="Display graphical Python interpreter") shell_priority = List(['oalab:IPythonShell', 'oalab:BuiltinShell'], config=True, help="List of graphical Python interpreters, sorted by preference") store = Bool(True, config=True, help="Display alea_install_gui") menu = Bool(True, config=True, help="Display menu bar") #paradigms_list = List(['oalab.plugins:PythonApplet', 'oalab.plugins:LPyApplet', 'oalab.plugins:RApplet', 'oalab.plugins:VisualeaApplet'], config=True, help="List of available paradigms")