-import compooper
-import browser
-import typeNode
-from PyQt4.QtGui import QAction
-from PyQt4.QtCore import Qt, SIGNAL, QVariant
+from . import compooper
+from . import browser
+from . import typeNode
+from PyQt5.QtWidgets import QAction
+from PyQt5.QtCore import Qt
+
typeNode.PopUpMenuNode.createPopUpMenu(self)
if ("AFFE_CARA_ELEM" in self.item.get_genealogie()) and self.editor.salome:
self.ViewElt = QAction(tr('View3D'),self.tree)
typeNode.PopUpMenuNode.createPopUpMenu(self)
if ("AFFE_CARA_ELEM" in self.item.get_genealogie()) and self.editor.salome:
self.ViewElt = QAction(tr('View3D'),self.tree)
self.ViewElt.setStatusTip(tr("affiche dans Geom les elements de structure"))
self.menu.addAction(self.ViewElt)
if self.item.isvalid() :
self.ViewElt.setStatusTip(tr("affiche dans Geom les elements de structure"))
self.menu.addAction(self.ViewElt)
if self.item.isvalid() :
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):
# ------------------------------------
class POURSUITENode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
# ------------------------------------
class POURSUITENode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):
return MonWidgetCommande (self,self.editor ,self.item.object)
def createPopUpMenu(self):