From: eficas <> Date: Mon, 18 Apr 2005 13:07:07 +0000 (+0000) Subject: CCAR: modification edition INCLUDE X-Git-Tag: CC_param_poursuite~145 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab32e4ed0524435480be0b1dfbb922bc4b216354;p=modules%2Feficas.git CCAR: modification edition INCLUDE --- diff --git a/Editeur/macrodisplay.py b/Editeur/macrodisplay.py index 58a72da4..1f114107 100644 --- a/Editeur/macrodisplay.py +++ b/Editeur/macrodisplay.py @@ -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() diff --git a/Extensions/jdc_include.py b/Extensions/jdc_include.py index 80b96dab..2e2778d5 100644 --- a/Extensions/jdc_include.py +++ b/Extensions/jdc_include.py @@ -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): """