2 # Copyright (C) 2013-2024 EDF
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.
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.
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
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 from qtsalome import *
22 from .Gui.myMain_ui import Ui_Gestion
26 class MonAppli(Ui_Gestion,QWidget):
28 QWidget.__init__(self)
29 Ui_Gestion.__init__(self)
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)
44 def BExpPressed(self):
47 def BImpPressed(self):
50 def BCreePressed(self):
51 from .Gui.monNomBase import DataBaseName
52 maW=DataBaseName(self)
54 from .createDatabase import creeDatabase
55 creeDatabase(self.nomBase)
57 def BVuePressed(self):
58 if self.nomBase == "" :
59 from .Gui.monNomBase import DataBaseName
60 maW=DataBaseName(self)
62 from .Gui.maFenetreChoix import MaFenetreChoix
63 from .Base.dataBase import Base
64 maBase=Base(self.nomBase)
66 window = MaFenetreChoix(maBase)
72 def BStatPressed(self):
76 if __name__ == "__main__":
77 app = QApplication(sys.argv)