PluginProjectPyramid.py

changeset 64
3b2da211e126
parent 63
f249a66da0d5
child 66
c8f88c9e4453
equal deleted inserted replaced
63:f249a66da0d5 64:3b2da211e126
26 # Start-of-Header 26 # Start-of-Header
27 name = "Pyramid Project Plugin" 27 name = "Pyramid Project Plugin"
28 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 28 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
29 autoactivate = True 29 autoactivate = True
30 deactivateable = True 30 deactivateable = True
31 version = "1.4.0" 31 version = "1.5.0"
32 className = "ProjectPyramidPlugin" 32 className = "ProjectPyramidPlugin"
33 packageName = "ProjectPyramid" 33 packageName = "ProjectPyramid"
34 shortDescription = "Project support for Pyramid projects." 34 shortDescription = "Project support for Pyramid projects."
35 longDescription = \ 35 longDescription = \
36 """This plugin implements project support for Pyramid projects.""" 36 """This plugin implements project support for Pyramid projects."""
404 "Pyramid", 404 "Pyramid",
405 self.trUtf8("Pyramid"), self.fileTypesCallback, 405 self.trUtf8("Pyramid"), self.fileTypesCallback,
406 lexerAssociationCallback=self.lexerAssociationCallback, 406 lexerAssociationCallback=self.lexerAssociationCallback,
407 binaryTranslationsCallback= 407 binaryTranslationsCallback=
408 self.binaryTranslationsCallback) 408 self.binaryTranslationsCallback)
409
410 def getMenu(self, name):
411 """
412 Public method to get a reference to the requested menu.
413
414 @param name name of the menu (string)
415 @return reference to the menu (QMenu) or None, if no
416 menu with the given name exists
417 """
418 if self.__object is not None:
419 return self.__object.getMenu(name)
420 else:
421 return None
422
423 def getMenuNames(self):
424 """
425 Public method to get the names of all menus.
426
427 @return menu names (list of string)
428 """
429 if self.__object is not None:
430 return list(self.__menus.keys())
431 else:
432 return []

eric ide

mercurial