]> SALOME platform Git repositories - modules/parametric.git/blob - src/salome/parametric/gui/mainpanel.py
Salome HOME
Replace Eficas by a custom GUI for the definition of execution parameters
[modules/parametric.git] / src / salome / parametric / gui / mainpanel.py
1 # Copyright (C) 2012 EDF
2 #
3 # This file is part of SALOME PARAMETRIC module.
4 #
5 # SALOME PARAMETRIC module is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # SALOME PARAMETRIC module is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with SALOME PARAMETRIC module.  If not, see <http://www.gnu.org/licenses/>.
17
18 import SalomePyQt
19 sgPyQt = SalomePyQt.SalomePyQt()
20
21 from wizard import Wizard
22
23 class MainPanel():
24
25   def new_study(self):
26     wizard = Wizard(sgPyQt.getDesktop())
27     view_id = sgPyQt.createView("New Parametric Study", wizard)
28     wizard.view_id = view_id
29
30   def edit_study(self, param_study):
31     wizard = Wizard(sgPyQt.getDesktop())
32     wizard.set_study(param_study)
33     view_id = sgPyQt.createView(param_study.name, wizard)
34     wizard.view_id = view_id