from widgets import askopenfilename
from widgets import Fenetre,FenetreYesNo
from widgets import showinfo,showerror
-from Ihm import CONNECTOR
#
__version__="$Name: $"
-__Id__="$Id: compomacro.py,v 1.22 2005/06/10 13:47:49 eficas Exp $"
+__Id__="$Id: compomacro.py,v 1.24 2005/11/03 09:03:48 eficas Exp $"
#
class MACROPanel(panels.OngletPanel):
self.makeParamCommentPage_for_etape(nb.page("Commentaire"))
nb.tab('Mocles').focus_set()
nb.setnaturalsize()
+ self.enlevebind()
+ self.creebind()
self.affiche()
def makeFichierPage(self,page):
if not hasattr(self.object,"jdc_aux") or self.object.jdc_aux is None:
#L'include n'est pas initialise
self.object.build_include(None,"")
- self.parent_node=node
# On cree un nouvel onglet dans le bureau
appli.bureau.ShowJDC(self.object.jdc_aux,self.object.jdc_aux.nom,
label_onglet=None,
JDCDISPLAY=macrodisplay.MACRODISPLAY)
- self.myjdc=appli.bureau.JDCDisplay_courant
- self.myjdc.fichier=self.object.fichier_ini
-
- def onClose(self):
- #print "onClose",self
- self.appli.bureau.closeJDCDISPLAY(self.myjdc)
def makeView(self,appli,node):
if not hasattr(self.object,"jdc_aux") or self.object.jdc_aux is None:
else:
nom=nom+' '+self.object.fichier_ini
macdisp=macrodisplay.makeMacroDisplay(appli,self,nom)
- CONNECTOR.Connect(self.object.jdc_aux,"close",self.onCloseView,(macdisp,))
-
- def onCloseView(self,macdisp):
- #print "onCloseView",self,macdisp
- macdisp.quit()
class INCLUDEPanel(MACROPanel):
def makeFichierPage(self,page):
text="""DEBUT()
FIN()"""
self.object.build_poursuite(None,text)
- self.parent_node=node
# On cree un nouvel onglet dans le bureau
appli.bureau.ShowJDC(self.object.jdc_aux,self.object.jdc_aux.nom,
label_onglet=None,
JDCDISPLAY=macrodisplay.MACRODISPLAY)
- self.myjdc=appli.bureau.JDCDisplay_courant
- self.myjdc.fichier=self.object.fichier_ini
def makeView(self,appli,node):
if not hasattr(self.object,"jdc_aux") or self.object.jdc_aux is None:
else:
nom=nom+' '+self.object.fichier_ini
macdisp=macrodisplay.makeMacroDisplay(appli,self,nom)
- CONNECTOR.Connect(self.object.jdc_aux,"close",self.onCloseView,(macdisp,))
class INCLUDE_MATERIAUTreeItem(INCLUDETreeItemBase):
rmenu_specs=[("View","makeView"),