Plugins/PluginTabnanny.py

changeset 28
dde24fc7f7ba
parent 13
1af94a91f439
child 40
c2e5472b112c
equal deleted inserted replaced
27:1018a0347ae9 28:dde24fc7f7ba
145 @param menuName name of the menu to be shown (string) 145 @param menuName name of the menu to be shown (string)
146 @param menu reference to the menu (QMenu) 146 @param menu reference to the menu (QMenu)
147 """ 147 """
148 if menuName == "Checks" and self.__projectAct is not None: 148 if menuName == "Checks" and self.__projectAct is not None:
149 self.__projectAct.setEnabled(\ 149 self.__projectAct.setEnabled(\
150 e4App().getObject("Project").getProjectLanguage() == "Python") 150 e4App().getObject("Project").getProjectLanguage() == "Python3")
151 151
152 def __projectBrowserShowMenu(self, menuName, menu): 152 def __projectBrowserShowMenu(self, menuName, menu):
153 """ 153 """
154 Private slot called, when the the project browser context menu or a submenu is 154 Private slot called, when the the project browser context menu or a submenu is
155 about to be shown. 155 about to be shown.
178 """ 178 """
179 Public slot used to check the project files for bad indentations. 179 Public slot used to check the project files for bad indentations.
180 """ 180 """
181 project = e4App().getObject("Project") 181 project = e4App().getObject("Project")
182 project.saveAllScripts() 182 project.saveAllScripts()
183 # TODO: make this dependant on configured extensions
183 files = [os.path.join(project.ppath, file) \ 184 files = [os.path.join(project.ppath, file) \
184 for file in project.pdata["SOURCES"] \ 185 for file in project.pdata["SOURCES"] \
185 if file.endswith(".py") or \ 186 if file.endswith(".py") or \
186 file.endswith(".pyw") or \ 187 file.endswith(".pyw") or \
187 file.endswith(".ptl")] 188 file.endswith(".ptl")]

eric ide

mercurial