コード例 #1
0
def StandardTools():
    """ Returns a standard, default Tools object.
    """
    # Make sure that all of the features have been added:
    add_standard_features()

    # Return a Tools object with one starter page containing a sample tool:
    page = ToolsPage(name='Page', tools=[make_tool('Universal Inspector')])
    return Tools(pages=[page], selected_page=page)
コード例 #2
0
ファイル: develop.py プロジェクト: enthought/etsdevtools
def StandardTools ( ):
    """ Returns a standard, default Tools object.
    """
    # Make sure that all of the features have been added:
    add_standard_features()

    # Return a Tools object with one starter page containing a sample tool:
    page = ToolsPage( name  = 'Page',
                      tools = [ make_tool( 'Universal Inspector' ) ] )
    return Tools( pages = [ page ], selected_page = page )
コード例 #3
0
ファイル: develop.py プロジェクト: enthought/etsdevtools
def develop ( obj_or_class, args = (), traits = {} ):
    """ Helps a user develop a specified object or class.
    """
    add_standard_features()
    page  = ToolsPage( name  = 'Develop',
                       tools = [ make_tool( 'Universal Inspector' ),
                                 make_tool( 'FBI Viewer' ) ] )
    Tools( test_object   = obj_or_class,
           test_args     = args,
           test_traits   = traits,
           pages         = [ page ],
           selected_page = page ).configure_traits()
コード例 #4
0
def develop(obj_or_class, args=(), traits={}):
    """ Helps a user develop a specified object or class.
    """
    add_standard_features()
    page = ToolsPage(
        name='Develop',
        tools=[make_tool('Universal Inspector'),
               make_tool('FBI Viewer')])
    Tools(test_object=obj_or_class,
          test_args=args,
          test_traits=traits,
          pages=[page],
          selected_page=page).configure_traits()