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