- def initCommentaire(self):
- commentaire=""
- mc = self.node.item.get_definition()
- d_aides = { 'TXM' : 'chaînes\n',
- 'R' : 'réels\n',
- 'I' : 'entiers\n',
- 'C' : 'complexes\n'}
- type = mc.type[0]
- if not d_aides.has_key(type) :
- if mc.min == mc.max:
- commentaire=tr("Entrez ")+str(mc.min)+(" valeurs \n ")
- else :
- commentaire=tr("Entrez entre ")+str(mc.min)+tr(" et ")+str(mc.max)+tr(" valeurs ")
- else :
- # Pour la traduction
- if type == 'TXM' : aide=tr('chaines \n')
- if type == 'R' : aide=tr('reels\n')
- if type == 'I' : aide=tr('entiers\n')
- if type == 'C' : aide=tr('complexes\n')
- if mc.min == mc.max:
- commentaire=tr("Entrez ")+str(mc.min)+" "+ aide
- else :
- commentaire=tr("Entrez entre ")+str(mc.min)+tr(" et ")+str(mc.max)+" "+aide
- aideval=self.node.item.aide()
- commentaire=commentaire + (aideval)
- self.monCommentaireLabel.setText(commentaire)