Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def PythonCard-0.8.1::registry::Registry::findBuiltInComponents (   self  ) 

Return a list of the built-in module names that is suitable
for subsequent calls to resource.loadComponentModule.

Definition at line 20 of file registry.py.

00020                                    :
        """
        Return a list of the built-in module names that is suitable
        for subsequent calls to resource.loadComponentModule.
        """

        path = PythonCard.components.__path__[0]
        paths = glob.glob(os.path.join(path, '*.py'))
        names = []
        for path in paths:
            filename = os.path.split(path)[1]
            # don't return package file
            if filename != '__init__.py':
                names.append(os.path.splitext(filename)[0])
        #for name in names :
        #    print 'found component: ', name
        return names
            
    def register( self, componentClass ) :


Generated by  Doxygen 1.6.0   Back to index