Exemplo n.º 1
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()
Exemplo n.º 2
0
def main():
    """ Runs the application. """

    # Create the application.
    application = WorkbenchApplication(
        id = 'testProject_extended',
        plugins=[
            CorePlugin(),
            WorkbenchPlugin(),
            DeveloperPlugin(),
            DeveloperUIPlugin(),
            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
Exemplo n.º 3
0
def main():

    # Get the default mayavi plugins.
    plugins = get_plugins()
    # Inject our plugin up front so our perspective becomes the default.
    plugins.insert(0, ExplorerPlugin())

    # Create an Envisage application.
    id = 'explorer3d.Explorer3D'
    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, 'explorer3d.log', mode=logging.ERROR)

    # Start the application.
    application.run()
Exemplo n.º 4
0
def main():

    # Get the default mayavi plugins.
    plugins = get_plugins()
    # Inject our plugin up front so our perspective becomes the default.
    plugins.insert(0, ExplorerPlugin())

    # Create an Envisage application.
    id = 'explorer3d.Explorer3D'
    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, 'explorer3d.log', mode=logging.ERROR)

    # Start the application.
    application.run()
def main():
    application = Application(id='Update Checker Tester',
                              plugins=[UpdateChecker()])

    application = WorkbenchApplication(id='update_checker_tester',
                                       name='Update Checker',
                                       plugins=[
                                           CorePlugin(),
                                           WorkbenchPlugin(),
                                           UpdateCheckerPlugin(),
                                       ])
    application.run()
Exemplo n.º 6
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
Exemplo n.º 7
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()
Exemplo n.º 8
0
# Enthought developer tool plugins:
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()
Exemplo n.º 9
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()