Salome HOME
PN vielles macros
[tools/eficas.git] / Editeur / treeitemincanvas.py
index a9d5c86e821c8e30713c396c6fa7925119c32048..f0d45572206873a61ba88a617e6e335b5eff5713 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
@@ -27,7 +28,7 @@ import Objecttreeitem
 import treewidget
 
 class TREEITEMINCANVAS:
-   def __init__(self,object,nom="",parent=None,appli=None,sel=None):
+   def __init__(self,object,nom="",parent=None,appli=None,sel=None,rmenu=None):
       self.object=object
       self.nom=nom
 
@@ -49,7 +50,7 @@ class TREEITEMINCANVAS:
       if not sel:
          def sel(event=None):
             return
-      self.tree=treewidget.Tree(self.appli,self.item,self.canvas,command=sel)
+      self.tree=treewidget.Tree(self.appli,self.item,self.canvas,command=sel,rmenu=rmenu)
       self.tree.draw()
 
    def mainloop(self):