]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
CCAR: modification edition INCLUDE
authoreficas <>
Mon, 18 Apr 2005 13:07:07 +0000 (13:07 +0000)
committereficas <>
Mon, 18 Apr 2005 13:07:07 +0000 (13:07 +0000)
Editeur/macrodisplay.py
Extensions/jdc_include.py

index 58a72da4be600635e6a4759a06ac28f7258c7073..1f1141071843ab08ad859af5f285b5228b00e7fb 100644 (file)
@@ -75,17 +75,18 @@ class MACRO2TreeItem(compojdc.JDCTreeItem):
       return self.object.get_l_noms_etapes()
 
 class MacroDisplay:
-  def __init__(self,appli,jdc,nom_jdc):
+  def __init__(self,appli,objet,nom_jdc):
     self.fenetre = Tkinter.Toplevel()
     self.fenetre.configure(width = 800,height=500)
     self.fenetre.protocol("WM_DELETE_WINDOW", self.quit)
     self.fenetre.title("Visualisation Macro_Etape")
-    self.jdc=jdc
+    self.objet=objet
+    self.jdc=objet.jdc_aux
     self.nom_jdc=nom_jdc
     self.appli=appli
     self.barre=Tkinter.Frame(self.fenetre,relief="ridge",bd=2)
     self.barre.pack(expand=1,fill=Tkinter.X)
-    if self.jdc.fichier_text is not None:
+    if self.objet.fichier_text is not None:
       b=Tkinter.Button(self.barre,image=images.get_image("Zoom24"),command=self.visufile)
       b.pack(side='left')
       tp=tooltip.TOOLTIP(b,"View file")
@@ -96,7 +97,7 @@ class MacroDisplay:
     self.canvas=self.mainPart.component('canvas')
     Pmw.Color.changecolor(self.canvas,background='gray95')
     self.mainPart.pack(padx=10,pady=10,fill = 'both', expand = 1)
-    self.item=MACRO2TreeItem(self.appli,nom_jdc,jdc)
+    self.item=MACRO2TreeItem(self.appli,nom_jdc,self.jdc)
     import treewidget
     self.tree = treewidget.Tree(self.appli,self.item,self.mainPart,command=None,rmenu=self.make_rmenu)
     self.tree.draw()
index 80b96dabf081df81c70934a5c96a69b960ca226d..2e2778d5fbacf5bf7014cd71602a023a4441869e 100644 (file)
@@ -156,7 +156,7 @@ class JDC_POURSUITE(JDC,NOTIFIER):
       """
       print "fin_modif",self,self.etape_include
       self.etape_include.fin_modif()
-      #self.notify()
+      self.notify()
 
    def supprime(self):
       """