]> SALOME platform Git repositories - tools/eficas.git/blob - InterfaceQT/monOptionsPdf.py
Salome HOME
Modif V6_4_°
[tools/eficas.git] / InterfaceQT / monOptionsPdf.py
1 from OptionsPdf import desPdf
2
3 class OptionPdf(desPdf):
4    def __init__(self,parent = None,name = None,modal = 0,fl = 0,configuration=None):
5        desPdf.__init__(self,parent,name,modal,fl)
6        self.configuration=configuration
7        self.initVal()
8
9    def initVal(self):
10        if hasattr(self.configuration,'exec_acrobat'):
11           self.LERepPdf.setText(self.configuration.exec_acrobat)
12        else :
13           self.LERepPdf.clear()
14    
15    def LeRepPdfPressed(self):
16        nouveau=str(self.LERepPdf.text())
17        self.configuration.exec_acrobat=nouveau
18        self.configuration.save_params()
19
20    def BokClicked(self):
21        self.LeRepPdfPressed()
22        self.close()