Example #1
0
    def _tools_default ( self ):
        from facets.extra.tools.tools import tools, Toolbox

        result = tools(
            application = 'FBI',
            tools       = [ 'FBI Buttons', 'FBI Viewer', 'Stack Frames',
                            'Local Variables' ],
            toolbox     = Toolbox( file_name = 'fbi.box' ),
            object      = self.object,
            show        = False
        )
        result.on_close = self._on_close

        return result
Example #2
0
    def run_tools ( self ):
        """ Run the application and the developer tool suite in separate
            windows.
        """
        from facets.extra.tools.tools import tools

        ui = self.application.edit_facets(
            view       = self.view,
            context    = self.context,
            id         = self.id,
            kind       = self.kind,
            handler    = self.handler,
            scrollable = self.scrollable,
            **(self.args)
        )

        tools_object = tools( object = self.application, show = False )
        AppInfo(
            context = tools_object,
            view    = tools_object.facet_view()
        ).run_app()

        return ui
Example #3
0
"""
Invokes the Facets developer environment for use with the Facets UI demo.
"""

#-------------------------------------------------------------------------------
#  Imports:
#-------------------------------------------------------------------------------

from facets.extra.tools.tools \
    import tools, Toolbox

#-- Launch the tool ------------------------------------------------------------

tools(
    application = 'Facets UI Demo',
    toolbox     = Toolbox( file_name = 'tool.box' )
)

#-- EOF ------------------------------------------------------------------------
Example #4
0
"""
Invokes the Facets developer environment.

We need to make sure the develop tool is imported so that the Python module
names are fully qualified correctly.
"""

#-------------------------------------------------------------------------------
#  Imports:
#-------------------------------------------------------------------------------

from facets.extra.tools.tools \
    import tools

#-- Launch the tool ------------------------------------------------------------

tools()

#-- EOF ------------------------------------------------------------------------