Salome HOME
Update of CheckDone
[modules/smesh.git] / src / Tools / Verima / lance.py
1 #!/usr/bin/env python3
2 # Copyright (C) 2013-2021  EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 from qtsalome import *
22 from .Gui.myMain_ui import Ui_Gestion
23 import sys
24
25
26 class MonAppli(Ui_Gestion,QWidget):
27      def __init__(self) :
28          QWidget.__init__(self)
29          Ui_Gestion.__init__(self)
30          self.setupUi(self)
31          self.connectSignaux()
32          self.nomBase=""
33          self.salomePath=""
34          self.version=""
35
36      def connectSignaux(self) :
37          self.BExp.clicked.connect(self.BExpPressed)
38          self.BImp.clicked.connect(self.BImpPressed)
39          self.BCree.clicked.connect(self.BCreePressed)
40          self.BVue.clicked.connect(BVuePressed)
41          self.BStat.clicked.connect(BStatPressed)
42
43
44      def BExpPressed(self):
45          pass
46
47      def BImpPressed(self):
48          pass
49
50      def BCreePressed(self):
51          from .Gui.monNomBase import DataBaseName
52          maW=DataBaseName(self)
53          maW.exec_()
54          from .createDatabase import creeDatabase
55          creeDatabase(self.nomBase)
56
57      def BVuePressed(self):
58          if self.nomBase == "" :
59             from .Gui.monNomBase import DataBaseName
60             maW=DataBaseName(self)
61             maW.exec_()
62          from .Gui.maFenetreChoix import MaFenetreChoix
63          from .Base.dataBase import Base
64          maBase=Base(self.nomBase)
65          maBase.initialise()
66          window = MaFenetreChoix(maBase)
67          #window.show()
68          window.exec_()
69
70          
71
72      def BStatPressed(self):
73          pass
74
75
76 if __name__ == "__main__":
77       app = QApplication(sys.argv)
78       window = MonAppli()
79       window.show()
80       sys.exit(app.exec_())
81
82