290 @param menu reference to the menu (QMenu) |
290 @param menu reference to the menu (QMenu) |
291 """ |
291 """ |
292 if menuName == "Checks" and self.__projectAct is not None: |
292 if menuName == "Checks" and self.__projectAct is not None: |
293 self.__projectAct.setEnabled( |
293 self.__projectAct.setEnabled( |
294 e5App().getObject("Project").getProjectLanguage() in |
294 e5App().getObject("Project").getProjectLanguage() in |
295 ["Python3", "Python2", "Python"]) |
295 ["Python3", "Python2", "Python", "MicroPython"]) |
296 |
296 |
297 def __projectBrowserShowMenu(self, menuName, menu): |
297 def __projectBrowserShowMenu(self, menuName, menu): |
298 """ |
298 """ |
299 Private slot called, when the the project browser context menu or a |
299 Private slot called, when the the project browser context menu or a |
300 submenu is about to be shown. |
300 submenu is about to be shown. |
302 @param menuName name of the menu to be shown (string) |
302 @param menuName name of the menu to be shown (string) |
303 @param menu reference to the menu (QMenu) |
303 @param menu reference to the menu (QMenu) |
304 """ |
304 """ |
305 if menuName == "Checks" and \ |
305 if menuName == "Checks" and \ |
306 e5App().getObject("Project").getProjectLanguage() in \ |
306 e5App().getObject("Project").getProjectLanguage() in \ |
307 ["Python3", "Python2", "Python"]: |
307 ["Python3", "Python2", "Python", "MicroPython"]: |
308 self.__projectBrowserMenu = menu |
308 self.__projectBrowserMenu = menu |
309 if self.__projectBrowserAct is None: |
309 if self.__projectBrowserAct is None: |
310 self.__projectBrowserAct = E5Action( |
310 self.__projectBrowserAct = E5Action( |
311 self.tr('Check Indentations'), |
311 self.tr('Check Indentations'), |
312 self.tr('&Indentations...'), 0, 0, |
312 self.tr('&Indentations...'), 0, 0, |