if QFileInfo(fn).exists():
abort = QMessageBox.warning(
self,
- self.trUtf8("Save File"),
- self.trUtf8("The file <b>%1</b> already exists.").arg(fn),
- self.trUtf8("&Overwrite"),
- self.trUtf8("&Abort") )
+ self.trUtf8("Sauvegarde Fichier"),
+ self.trUtf8("Le fichier <b>%1</b> existe deja.").arg(fn),
+ self.trUtf8("&Remplacer"),
+ self.trUtf8("&Abandonner") )
print abort
if abort:
return (0, None)
def handleCurrentChanged(self):
- try :
- self.LEFiltre.setFocus()
- except :
- pass
+ label=self.TWChoix.tabLabel(self.TWChoix.currentPage())
+ if label==QString("Nouvelle Commande"):
+ try :
+ self.LEFiltre.setFocus()
+ except :
+ pass
+ if label==QString("Nommer Concept"):
+ try :
+ self.LENomConcept.setFocus()
+ except :
+ pass
def BuildLBNouvCommande(self):
self.LBNouvCommande.clear()
self.typeConcept.setText(type_sd)
self.LENomConcept.setText("")
self.LENomConcept.setText(nomConcept)
+ self.LENomConcept.setFocus()
if not fn.isNull():
if QFileInfo(fn).exists():
abort = QMessageBox.warning(self,
- self.trUtf8("Save File"),
- self.trUtf8("The file <b>%1</b> already exists.")
+ self.trUtf8("Sauvegarde Fichier"),
+ self.trUtf8("Le fichier <b>%1</b> existe.")
.arg(fn),
- self.trUtf8("&Overwrite"),
- self.trUtf8("&Abort"), None, 1)
+ self.trUtf8("&Remplacer"),
+ self.trUtf8("&Abandonner"), None, 1)
if abort:
return
fn = unicode(QDir.convertSeparators(fn))
"CALC_PRECONT","DEFI_TEXTURE","TEST_RESU","COMB_CHAM_NO","COMB_CHAM_ELEM",
"CALC_FATIGUE","IMPR_OAR", "AFFE_CHAR_MECA_F",
"MACR_ASCOUF_CALC","MACR_ASPIC_CALC","MACR_CABRI_CALC",
- "MACR_ADAP_MAIL","IMPR_FICO_HOMARD","DEFI_PART_FETI",
- "DEBUT"
+ "MACR_ADAP_MAIL","IMPR_FICO_HOMARD","DEFI_PART_FETI"
)
dict_erreurs={
#STA8.4
- "DEBUT" : "tiiiiiiiiiiiiiiiiiiii",
"DIST_LIGN_3D": "la commande DIST_LIGN_3D a ete supprimee",
"DEFI_THER_JOULE": "la commande DIST_LIGN_3D a ete supprimee",
"DIST_LIGN_3D": "la commande DIST_LIGN_3D a ete supprimee",
dict_erreurs={
#STA8.4
- "DEBUT" : "tiiiiiiiiiiiiiiiiiiii",
"DIST_LIGN_3D": "la commande DIST_LIGN_3D a ete supprimee",
"DEFI_THER_JOULE": "la commande DIST_LIGN_3D a ete supprimee",
"DIST_LIGN_3D": "la commande DIST_LIGN_3D a ete supprimee",