119 self.__editorAct = None |
119 self.__editorAct = None |
120 self.__editorTabnannyDialog = None |
120 self.__editorTabnannyDialog = None |
121 |
121 |
122 def indentCheck(self, lang, filename, source): |
122 def indentCheck(self, lang, filename, source): |
123 """ |
123 """ |
124 Method to prepare a style check on one Python source file in another |
124 Public method to prepare a style check on one Python source file. |
125 task. |
|
126 |
125 |
127 @param lang language of the file or None to determine by internal |
126 @param lang language of the file or None to determine by internal |
128 algorithm (str or None) |
127 algorithm (str or None) |
129 @param filename source filename (string) |
128 @param filename source filename (string) |
130 @param source string containing the code to check (string) |
129 @param source string containing the code to check (string) |
254 if not self.__projectBrowserAct in menu.actions(): |
253 if not self.__projectBrowserAct in menu.actions(): |
255 menu.addAction(self.__projectBrowserAct) |
254 menu.addAction(self.__projectBrowserAct) |
256 |
255 |
257 def __projectTabnanny(self): |
256 def __projectTabnanny(self): |
258 """ |
257 """ |
259 Public slot used to check the project files for bad indentations. |
258 Private slot used to check the project files for bad indentations. |
260 """ |
259 """ |
261 project = e5App().getObject("Project") |
260 project = e5App().getObject("Project") |
262 project.saveAllScripts() |
261 project.saveAllScripts() |
263 ppath = project.getProjectPath() |
262 ppath = project.getProjectPath() |
264 files = [os.path.join(ppath, file) |
263 files = [os.path.join(ppath, file) |