DocumentationTools/APIGenerator.py

changeset 2953
703452a2876f
parent 2401
4f428de32b69
child 2989
7efa8b8b6903
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
3 # Copyright (c) 2004 - 2013 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2004 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the builtin API generator. 7 Module implementing the builtin API generator.
8
9 """ 8 """
10 9
11 10
12 class APIGenerator(object): 11 class APIGenerator(object):
13 """ 12 """
103 102
104 def __addMethodsAPI(self, className): 103 def __addMethodsAPI(self, className):
105 """ 104 """
106 Private method to generate the api section for class methods. 105 Private method to generate the api section for class methods.
107 106
108 @param classname Name of the class containing the method. (string) 107 @param className name of the class containing the method (string)
109 """ 108 """
110 from QScintilla.Editor import Editor 109 from QScintilla.Editor import Editor
111 110
112 _class = self.module.classes[className] 111 _class = self.module.classes[className]
113 methods = sorted(list(_class.methods.keys())) 112 methods = sorted(list(_class.methods.keys()))
138 137
139 def __addClassVariablesAPI(self, className): 138 def __addClassVariablesAPI(self, className):
140 """ 139 """
141 Private method to generate class api section for class variables. 140 Private method to generate class api section for class variables.
142 141
143 @param classname Name of the class containing the class variables. (string) 142 @param className name of the class containing the class variables (string)
144 """ 143 """
145 from QScintilla.Editor import Editor 144 from QScintilla.Editor import Editor
146 145
147 _class = self.module.classes[className] 146 _class = self.module.classes[className]
148 classNameStr = "{0}{1}.".format(self.moduleName, className) 147 classNameStr = "{0}{1}.".format(self.moduleName, className)

eric ide

mercurial