コード例 #1
0
ファイル: telplugins.py プロジェクト: alexdarling/telPlugins
    def listOfPlugins():
        global _pluginsAlreadyLoaded
        # Hack to get round bug in loadPlugins
        if not _pluginsAlreadyLoaded:
           tpc.loadPlugins (_pluginManager)
           _pluginsAlreadyLoaded = True

        aList = []
        names = tpc.getPluginLibraryNames (_pluginManager)
        n = tpc.getNumberOfPlugins (_pluginManager)
        print names
        print n
        # This is a hack to get round thelack of metadata in the plugin
        # Will be resolved in next revision of library
        for i in range (0, n):
            handle = tpc.getPlugin(_pluginManager, names[i])
            info = tpc.getPluginInfo (handle)
            info = info.split ("\n")
            hint = info[2]
            hint = hint.replace("Category......................", "")
            aList.append ([names[i], hint])
        return aList
コード例 #2
0
    def listOfPlugins():
        global _pluginsAlreadyLoaded
        # Hack to get round bug in loadPlugins
        if not _pluginsAlreadyLoaded:
            tpc.loadPlugins(_pluginManager)
            _pluginsAlreadyLoaded = True

        aList = []
        names = tpc.getPluginLibraryNames(_pluginManager)
        n = tpc.getNumberOfPlugins(_pluginManager)
        print names
        print n
        # This is a hack to get round thelack of metadata in the plugin
        # Will be resolved in next revision of library
        for i in range(0, n):
            handle = tpc.getPlugin(_pluginManager, names[i])
            info = tpc.getPluginInfo(handle)
            info = info.split("\n")
            hint = info[2]
            hint = hint.replace("Category......................", "")
            aList.append([names[i], hint])
        return aList
コード例 #3
0
ファイル: telplugins.py プロジェクト: alexdarling/telPlugins
 def loadPlugins(self):
     tpc.loadPlugins (self.pluginsManager)
コード例 #4
0
 def loadPlugins(self):
     tpc.loadPlugins(self.pluginsManager)