Plugins/PluginTabnanny.py

changeset 571
1a4101cb87eb
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
equal deleted inserted replaced
570:43a680c5c8e6 571:1a4101cb87eb
174 """ 174 """
175 Public slot used to check the project files for bad indentations. 175 Public slot used to check the project files for bad indentations.
176 """ 176 """
177 project = e5App().getObject("Project") 177 project = e5App().getObject("Project")
178 project.saveAllScripts() 178 project.saveAllScripts()
179 files = [os.path.join(project.ppath, file) \ 179 ppath = project.getProjectPath()
180 files = [os.path.join(ppath, file) \
180 for file in project.pdata["SOURCES"] \ 181 for file in project.pdata["SOURCES"] \
181 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))] 182 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))]
182 183
183 self.__projectTabnannyDialog = TabnannyDialog() 184 self.__projectTabnannyDialog = TabnannyDialog()
184 self.__projectTabnannyDialog.show() 185 self.__projectTabnannyDialog.show()
185 self.__projectTabnannyDialog.start(files) 186 self.__projectTabnannyDialog.prepare(files, project)
186 187
187 def __projectBrowserTabnanny(self): 188 def __projectBrowserTabnanny(self):
188 """ 189 """
189 Private method to handle the tabnanny context menu action of the project 190 Private method to handle the tabnanny context menu action of the project
190 sources browser. 191 sources browser.

eric ide

mercurial