Example #1
0
def get_plugins():
    """Get list of default plugins to use for Mayavi."""
    from envisage.core_plugin import CorePlugin
    from envisage.ui.workbench.workbench_plugin import WorkbenchPlugin
    from envisage.plugins.python_shell.python_shell_plugin import PythonShellPlugin
    from tvtk.plugins.scene.scene_plugin import ScenePlugin
    from tvtk.plugins.scene.ui.scene_ui_plugin import SceneUIPlugin
    from mayavi.plugins.mayavi_plugin import MayaviPlugin
    from mayavi.plugins.mayavi_ui_plugin import MayaviUIPlugin
    from envisage.developer.developer_plugin import DeveloperPlugin
    from envisage.developer.ui.developer_ui_plugin import DeveloperUIPlugin

    plugins = [CorePlugin(),
               WorkbenchPlugin(),
               MayaviPlugin(),
               MayaviUIPlugin(),
               ScenePlugin(),
               SceneUIPlugin(),
               PythonShellPlugin(),
               DeveloperPlugin(),
               DeveloperUIPlugin(),
               #              TextEditorPlugin()
               ]

    return plugins
Example #2
0
def main():
    """ Runs the application. """

    # Create the application.
    application = WorkbenchApplication(
        id='testProject_extended',
        plugins=[
            CorePlugin(),
            WorkbenchPlugin(),
            ProjectPlugin(),
            EnvProjectPlugin(),
            PythonShellPlugin(),
            # FIXME: This is uncommented for now until we have the new TreeEditor
            # implementation in place that can understand domain-objects that have
            # been abstracted to an INode interface.
            #DataPlugin(),
        ])

    # Run the application.
    application.run()

    return
Example #3
0
def main():
    """The main application is created and launched here."""
    # Setup the logger.

    plugins = [
        CorePlugin(),
        WorkbenchPlugin(),
        MyPlugin(),
        ScenePlugin(),
        SceneUIPlugin(),
        BrowserPlugin(),
        PythonShellPlugin(),
    ]
    # Create an Envisage application.
    id = 'tvtk.examples.plugins.test'
    application = WorkbenchApplication(id=id, plugins=plugins)
    # This needs to be done here since the ETSConfig.application_home is
    # not set correctly up to this point.
    setup_logger(logger, 'test.log', mode=logging.DEBUG)

    application.gui.on_trait_change(
        lambda value: bind_object(value, application), 'started')
    # Start the application.
    application.run()
Example #4
0
from etsdevtools.developer.developer_plugin import EnthoughtDeveloperPlugin
from etsdevtools.developer.tools.fbi_plugin import FBIPlugin
from etsdevtools.developer.helper.fbi \
    import enable_fbi

#-------------------------------------------------------------------------------
#  Application entry point:
#-------------------------------------------------------------------------------

if __name__ == '__main__':

    # FIXME: Need to remove this. This is not necessary as the FBI plugin
    # calls enable_fbi.
    # Allow the FBI to handle any exceptions that occur:
    # enable_fbi()

    # Create an Envisage application:
    application = WorkbenchApplication(plugins=[
        CorePlugin(),
        WorkbenchPlugin(),
        PythonShellPlugin(),
        EnthoughtDeveloperPlugin(),
        FBIPlugin()
    ],
                                       argv=sys.argv,
                                       id='Enthought Developer Tools',
                                       requires_gui=True)

    # Run the application
    application.run()