+# -*- coding: utf-8 -*-
# CONFIGURATION MANAGEMENT OF EDF VERSION
# ======================================================================
# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
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
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):