X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonWidgetSimpBase.py;h=c431983c48f6b695269b8adfca8b1ed0e79fb611;hb=80eb29926b88137b9f0f19175c0d0c52d7dcc206;hp=f61c9f4f651d4967dfa5e12683a277057fcd7532;hpb=b6d6a182e6a27f91c0790bb9e7482b7988cf3c18;p=tools%2Feficas.git diff --git a/InterfaceQT4/monWidgetSimpBase.py b/InterfaceQT4/monWidgetSimpBase.py index f61c9f4f..c431983c 100644 --- a/InterfaceQT4/monWidgetSimpBase.py +++ b/InterfaceQT4/monWidgetSimpBase.py @@ -35,17 +35,20 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande): Feuille.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande) + #print "MonWidgetSimpBase", nom self.parentQt.commandesLayout.insertWidget(-1,self) self.setFocusPolicy(Qt.StrongFocus) self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.LEValeurPressed) + self.AAfficher=self.lineEditVal self.maCommande.listeAffichageWidget.append(self.lineEditVal) - def showEvent(self, event): - if self.prendLeFocus==1 : - self.activateWindow() - self.lineEditVal.setFocus() - self.prendLeFocus=0 - QWidget.showEvent(self,event) + + #def showEvent(self, event): + # if self.prendLeFocus==1 : + # self.activateWindow() + # self.lineEditVal.setFocus() + # self.prendLeFocus=0 + # QWidget.showEvent(self,event) def setValeurs(self): self.politique=PolitiqueUnique(self.node,self.editor) @@ -76,7 +79,9 @@ class MonWidgetSimpBase (Ui_WidgetSimpBase,Feuille): 'Matrice' : tr(u'Une Matrice est attendue. '), 'Fichier' : tr(u'Un fichier est attendu. '), 'FichierNoAbs' : tr(u'Un fichier est attendu. '), - 'Repertoire' : tr(u'Un repertoire est attendu. ')} + 'Repertoire' : tr(u'Un repertoire est attendu. '), + 'Heure' : tr(u'Heure sous la forme HH:MM'), + 'Date' : tr(u'Date sous la forme JJ/MM/AA')} if mc.type[0] != types.ClassType: commentaire = d_aides.get(mc.type[0], tr("Type de base inconnu")) else : commentaire=""