src/eric7/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/ProjectHelper.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
134 134
135 def initMenu(self, mainMenu): 135 def initMenu(self, mainMenu):
136 """ 136 """
137 Public method to generate the extension menu. 137 Public method to generate the extension menu.
138 138
139 @param mainMenu reference to the main menu (QMenu) 139 @param mainMenu reference to the main menu
140 @return populated menu (QMenu) 140 @type QMenu
141 @return populated menu
142 @rtype QMenu
141 """ 143 """
142 menu = QMenu(self.menuTitle(), mainMenu) 144 menu = QMenu(self.menuTitle(), mainMenu)
143 menu.setIcon(EricPixmapCache.getIcon("fileDelete")) 145 menu.setIcon(EricPixmapCache.getIcon("fileDelete"))
144 menu.setTearOffEnabled(True) 146 menu.setTearOffEnabled(True)
145 147
153 155
154 def menuTitle(self): 156 def menuTitle(self):
155 """ 157 """
156 Public method to get the menu title. 158 Public method to get the menu title.
157 159
158 @return title of the menu (string) 160 @return title of the menu
161 @rtype str
159 """ 162 """
160 return self.tr("Purge") 163 return self.tr("Purge")
161 164
162 def __hgPurge(self): 165 def __hgPurge(self):
163 """ 166 """

eric ide

mercurial