else:
return self.textePython
+ #-----------------------------#
+ def saveRun(self):
+ #-----------------------------#
+ texte=self.run(execution="non")
+ path=self.CONFIGURATION.savedir
+ fn = QFileDialog.getSaveFileName( self,
+ self.trUtf8("sauvegarde"), path,
+ self.trUtf8("JDC (*.sh);;" "All Files (*)"),None,
+ QFileDialog.DontConfirmOverwrite)
+ if fn.isNull(): return
+ ext = QFileInfo(fn).suffix()
+ if ext.isEmpty(): fn.append(".xml")
+
+ if QFileInfo(fn).exists():
+ abort = QMessageBox.warning(self,
+ self.trUtf8("Sauvegarde du Fichier"),
+ self.trUtf8("Le fichier <b>%1</b> existe deja.").arg(fn),
+ self.trUtf8("&Ecraser"),
+ self.trUtf8("&Abandonner"))
+ if abort == 1 : return
+
+ fn = unicode(QDir.convertSeparators(fn))
+ self.writeFile( fn, txt = texte)
#-----------------------------#
def saveYACS(self):
fn = unicode(QDir.convertSeparators(fn))
self.writeFile( fn, txt = texte)
-
#-----------------------------------------#e
def cherche_Groupes(self):
listeMA,listeNO=self.get_text_JDC("GroupMA")