menu e4App getObject Project getMenu Checks if menu if self __projectA

1
2
3
4
5
6
7
8
menu = e4App().getObject("Project").getMenu("Checks")
if menu:
if self.__projectAct:
menu.removeAction(self.__projectAct)
e4App().getObject("Project").removeE4Actions([self.__projectAct])
if self.__projectShowAct:
menu.removeAction(self.__projectShowAct)
e4App().getObject("Project").removeE4Actions([self.__projectShowAct])