Salome HOME
linux/windows
[tools/eficas.git] / InterfaceQT4 / monWidgetSimpBase.py
index f61c9f4f651d4967dfa5e12683a277057fcd7532..c431983c48f6b695269b8adfca8b1ed0e79fb611 100644 (file)
@@ -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=""