eric6/Plugins/PluginCodeStyleChecker.py

changeset 7178
43e994af5ee0
parent 6942
2602857055c5
child 7199
c71bd6f21748
equal deleted inserted replaced
7177:29e9027f28c0 7178:43e994af5ee0
333 @param menu reference to the menu (QMenu) 333 @param menu reference to the menu (QMenu)
334 """ 334 """
335 if menuName == "Checks" and self.__projectAct is not None: 335 if menuName == "Checks" and self.__projectAct is not None:
336 self.__projectAct.setEnabled( 336 self.__projectAct.setEnabled(
337 e5App().getObject("Project").getProjectLanguage() in 337 e5App().getObject("Project").getProjectLanguage() in
338 ["Python3", "Python2", "Python"]) 338 ["Python3", "Python2", "Python", "MicroPython"])
339 339
340 def __projectBrowserShowMenu(self, menuName, menu): 340 def __projectBrowserShowMenu(self, menuName, menu):
341 """ 341 """
342 Private slot called, when the the project browser menu or a submenu is 342 Private slot called, when the the project browser menu or a submenu is
343 about to be shown. 343 about to be shown.
345 @param menuName name of the menu to be shown (string) 345 @param menuName name of the menu to be shown (string)
346 @param menu reference to the menu (QMenu) 346 @param menu reference to the menu (QMenu)
347 """ 347 """
348 if menuName == "Checks" and \ 348 if menuName == "Checks" and \
349 e5App().getObject("Project").getProjectLanguage() in \ 349 e5App().getObject("Project").getProjectLanguage() in \
350 ["Python3", "Python2", "Python"]: 350 ["Python3", "Python2", "Python", "MicroPython"]:
351 self.__projectBrowserMenu = menu 351 self.__projectBrowserMenu = menu
352 if self.__projectBrowserAct is None: 352 if self.__projectBrowserAct is None:
353 self.__projectBrowserAct = E5Action( 353 self.__projectBrowserAct = E5Action(
354 self.tr('Check Code Style'), 354 self.tr('Check Code Style'),
355 self.tr('&Code Style...'), 0, 0, 355 self.tr('&Code Style...'), 0, 0,

eric ide

mercurial