Plugins/PluginTabnanny.py

changeset 564
b3d966393ba9
parent 500
c3abc7895a01
child 571
1a4101cb87eb
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
73 menu = e5App().getObject("Project").getMenu("Checks") 73 menu = e5App().getObject("Project").getMenu("Checks")
74 if menu: 74 if menu:
75 self.__projectAct = E5Action(self.trUtf8('Check Indentations'), 75 self.__projectAct = E5Action(self.trUtf8('Check Indentations'),
76 self.trUtf8('&Indentations...'), 0, 0, 76 self.trUtf8('&Indentations...'), 0, 0,
77 self,'project_check_indentations') 77 self,'project_check_indentations')
78 self.__projectAct.setStatusTip(\ 78 self.__projectAct.setStatusTip(
79 self.trUtf8('Check indentations using tabnanny.')) 79 self.trUtf8('Check indentations using tabnanny.'))
80 self.__projectAct.setWhatsThis(self.trUtf8( 80 self.__projectAct.setWhatsThis(self.trUtf8(
81 """<b>Check Indentations...</b>""" 81 """<b>Check Indentations...</b>"""
82 """<p>This checks Python files""" 82 """<p>This checks Python files"""
83 """ for bad indentations using tabnanny.</p>""" 83 """ for bad indentations using tabnanny.</p>"""
140 140
141 @param menuName name of the menu to be shown (string) 141 @param menuName name of the menu to be shown (string)
142 @param menu reference to the menu (QMenu) 142 @param menu reference to the menu (QMenu)
143 """ 143 """
144 if menuName == "Checks" and self.__projectAct is not None: 144 if menuName == "Checks" and self.__projectAct is not None:
145 self.__projectAct.setEnabled(\ 145 self.__projectAct.setEnabled(
146 e5App().getObject("Project").getProjectLanguage() == "Python3") 146 e5App().getObject("Project").getProjectLanguage() == "Python3")
147 147
148 def __projectBrowserShowMenu(self, menuName, menu): 148 def __projectBrowserShowMenu(self, menuName, menu):
149 """ 149 """
150 Private slot called, when the the project browser context menu or a submenu is 150 Private slot called, when the the project browser context menu or a submenu is

eric ide

mercurial