Salome HOME
Merge tag 'V8_3_0a2' into ngr/python3_dev
[modules/smesh.git] / src / Tools / Verima / lance.py
1 #!/usr/bin/env python
2
3 from qtsalome import *
4 from .Gui.myMain_ui import Ui_Gestion
5 import sys
6
7
8 class MonAppli(Ui_Gestion,QWidget):
9      def __init__(self) :
10          QWidget.__init__(self)
11          Ui_Gestion.__init__(self)
12          self.setupUi(self)
13          self.connectSignaux()
14          self.nomBase=""
15          self.salomePath=""
16          self.version=""
17
18      def connectSignaux(self) :
19          self.BExp.clicked.connect(self.BExpPressed)
20          self.BImp.clicked.connect(self.BImpPressed)
21          self.BCree.clicked.connect(self.BCreePressed)
22          self.BVue.clicked.connect(BVuePressed)
23          self.BStat.clicked.connect(BStatPressed)
24
25
26      def BExpPressed(self):
27          pass
28
29      def BImpPressed(self):
30          pass
31
32      def BCreePressed(self):
33          from .Gui.monNomBase import DataBaseName
34          maW=DataBaseName(self)
35          maW.exec_()
36          from .createDatabase import creeDatabase
37          creeDatabase(self.nomBase)
38
39      def BVuePressed(self):
40          if self.nomBase == "" :
41             from .Gui.monNomBase import DataBaseName
42             maW=DataBaseName(self)
43             maW.exec_()
44          from .Gui.maFenetreChoix import MaFenetreChoix
45          from .Base.dataBase import Base
46          maBase=Base(self.nomBase)
47          maBase.initialise()
48          window = MaFenetreChoix(maBase)
49          #window.show()
50          window.exec_()
51
52          
53
54      def BStatPressed(self):
55          pass
56
57
58 if __name__ == "__main__":
59       app = QApplication(sys.argv)
60       window = MonAppli()
61       window.show()
62       sys.exit(app.exec_())
63
64