mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-04 09:40:34 +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):
|
def __init__(self,parent,txt):
|
||||||
QDialog.__init__(self,parent)
|
QDialog.__init__(self,parent)
|
||||||
|
self.pere=parent
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.resize( QSize(600,600).expandedTo(self.minimumSizeHint()) )
|
self.resize( QSize(600,600).expandedTo(self.minimumSizeHint()) )
|
||||||
self.connect( self.PB_Ok,SIGNAL("clicked()"), self, SLOT("close()") )
|
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("readyReadStandardOutput()"), self.readFromStdOut )
|
||||||
self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErr )
|
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
|
# Je n arrive pas a utiliser le setEnvironment du QProcess
|
||||||
# fonctionne hors Salome mais pas dans Salome ???
|
# fonctionne hors Salome mais pas dans Salome ???
|
||||||
@ -62,6 +64,8 @@ class MonViewText(Ui_ViewExe,QDialog):
|
|||||||
self.monExe.closeWriteChannel()
|
self.monExe.closeWriteChannel()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
def exeFinished(self):
|
||||||
|
self.pere.enregistreResultat()
|
||||||
|
|
||||||
def saveFile(self):
|
def saveFile(self):
|
||||||
#recuperation du nom du fichier
|
#recuperation du nom du fichier
|
||||||
|
@ -72,9 +72,9 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
|
|||||||
if not(self.PrepareLigneCommande()) : return
|
if not(self.PrepareLigneCommande()) : return
|
||||||
self.PBSavePressed(NomHypo=True)
|
self.PBSavePressed(NomHypo=True)
|
||||||
maFenetre=MonViewText(self,self.commande)
|
maFenetre=MonViewText(self,self.commande)
|
||||||
if os.path.isfile(self.fichierOut) :self.enregistreResultat()
|
|
||||||
|
|
||||||
def enregistreResultat(self):
|
def enregistreResultat(self):
|
||||||
|
if not(os.path.isfile(self.fichierOut)) : return
|
||||||
import smesh
|
import smesh
|
||||||
import SMESH
|
import SMESH
|
||||||
import salome
|
import salome
|
||||||
|
Loading…
Reference in New Issue
Block a user