#
__version__="$Name: $"
-__Id__="$Id: compomacro.py,v 1.8 2002/11/12 13:26:04 eficas Exp $"
+__Id__="$Id: compomacro.py,v 1.9 2002/11/12 18:36:08 eficas Exp $"
#
class MACROPanel(panels.OngletPanel):
def makeView(self,appli):
nom=self.object.nom
- if hasattr(self.object,'fichier_ini'):nom=nom+' '+self.object.fichier_ini
+ if hasattr(self.object,'fichier_ini'):
+ if self.object.fichier_ini is None:
+ nom=nom+' '+"Fichier non défini"
+ else:
+ nom=nom+' '+self.object.fichier_ini
macrodisplay.makeMacroDisplay(appli,self.object,nom)
class INCLUDE_MATERIAUTreeItem(INCLUDETreeItem): pass
self.appli=appli
self.barre=Tkinter.Frame(self.fenetre,relief="ridge",bd=2)
self.barre.pack(expand=1,fill=Tkinter.X)
- b=Tkinter.Button(self.barre,image=images.get_image("Zoom24"),command=self.visufile)
- b.pack(side='left')
- tp=tooltip.TOOLTIP(b,"View file")
+ if self.jdc.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")
self.mainPart=Pmw.ScrolledCanvas(self.fenetre,
hull_width=600,
hull_height=500,