mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Push double click
This commit is contained in:
parent
2611ba88e3
commit
c2dc77e7c1
@ -37,6 +37,7 @@ class MonViewText(Ui_ViewExe,QDialog):
|
||||
"""
|
||||
def __init__(self,parent,txt):
|
||||
QDialog.__init__(self,parent)
|
||||
self.pere=parent
|
||||
self.setupUi(self)
|
||||
self.resize( QSize(600,600).expandedTo(self.minimumSizeHint()) )
|
||||
self.connect( self.PB_Ok,SIGNAL("clicked()"), self, SLOT("close()") )
|
||||
@ -46,6 +47,7 @@ class MonViewText(Ui_ViewExe,QDialog):
|
||||
|
||||
self.connect(self.monExe, SIGNAL("readyReadStandardOutput()"), self.readFromStdOut )
|
||||
self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErr )
|
||||
self.connect(self.monExe, SIGNAL("finished(int )"), self.exeFinished )
|
||||
|
||||
# Je n arrive pas a utiliser le setEnvironment du QProcess
|
||||
# fonctionne hors Salome mais pas dans Salome ???
|
||||
@ -62,6 +64,8 @@ class MonViewText(Ui_ViewExe,QDialog):
|
||||
self.monExe.closeWriteChannel()
|
||||
self.show()
|
||||
|
||||
def exeFinished(self):
|
||||
self.pere.enregistreResultat()
|
||||
|
||||
def saveFile(self):
|
||||
#recuperation du nom du fichier
|
||||
|
@ -72,9 +72,9 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
|
||||
if not(self.PrepareLigneCommande()) : return
|
||||
self.PBSavePressed(NomHypo=True)
|
||||
maFenetre=MonViewText(self,self.commande)
|
||||
if os.path.isfile(self.fichierOut) :self.enregistreResultat()
|
||||
|
||||
def enregistreResultat(self):
|
||||
if not(os.path.isfile(self.fichierOut)) : return
|
||||
import smesh
|
||||
import SMESH
|
||||
import salome
|
||||
|
Loading…
Reference in New Issue
Block a user