<property name="geometry" >
<rect>
<x>30</x>
- <y>40</y>
+ <y>10</y>
<width>440</width>
<height>41</height>
</rect>
<widget class="QLineEdit" name="LENomFichier" >
<property name="geometry" >
<rect>
- <x>18</x>
- <y>117</y>
+ <x>20</x>
+ <y>50</y>
<width>450</width>
<height>40</height>
</rect>
<widget class="QPushButton" name="BBrowse" >
<property name="geometry" >
<rect>
- <x>280</x>
- <y>240</y>
+ <x>20</x>
+ <y>270</y>
<width>161</width>
<height>41</height>
</rect>
<widget class="QPushButton" name="BChangeFile" >
<property name="geometry" >
<rect>
- <x>280</x>
- <y>290</y>
+ <x>20</x>
+ <y>320</y>
<width>161</width>
<height>41</height>
</rect>
</widget>
</item>
</layout>
+ <zorder>bOk</zorder>
+ <zorder>Commentaire</zorder>
+ <zorder>TWChoix</zorder>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
def initialise(self,config):
self.config=config
- self.dictMCVal={}
self.listeCODE=[]
self.text=""
self.textCode=""
self.initialise(config)
text=PythonGenerator.gener(self,obj,format)
self.verifie()
- for code in self.listeCODE:
- print code
+ for elt in self.listeCODE:
+ code=elt.keys()[0]
+ dico=elt[code]
+ self.dictMCVal={}
+ self.dictMCVal[code]=dico
if code in self.__class__.__dict__.keys():
codeYACS=str(code)+"YACS"
texteCode=apply(self.__class__.__dict__[codeYACS],(self,))
ce dictionnaire a pour clef la genealogie du MCSimp suivi de sa valeur
'''
- for code in self.dictMCVal.keys():
+ for elt in self.listeCODE:
+ code=elt.keys()[0]
+ dico=elt[code]
+ self.dictMCVal={}
+ self.dictMCVal[code]=dico
if code in self.__class__.__dict__.keys():
texteCode=apply(self.__class__.__dict__[code],(self,execution))
self.texteExecution=self.texteExecution+texteCode
def generPROC_ETAPE(self,obj):
- self.listeCODE.append(obj.nom)
- self.clefDico=obj.nom
- if not( self.dictMCVal.has_key(self.clefDico)):
- self.dictMCVal[self.clefDico]={}
- self.DictTemp=self.dictMCVal[self.clefDico]
- else:
- tempo=self.dictMCVal[self.clefDico]
- self.DictTemp={}
- import types
- if type(tempo) == types.TupleType:
- tempo.append(self.DictTemp)
- self.dictMCVal[self.clefDico]=tempo
- else:
- self.dictMCVal[self.clefDico]=[tempo,self.DictTemp]
+ clefDico=obj.nom
+ self.DictTemp={}
s=PythonGenerator.generPROC_ETAPE(self,obj)
- print self.listeCODE
- print self.dictMCVal
+ dico={}
+ dico[obj.nom]=self.DictTemp
+ self.listeCODE.append(dico)
return s