X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2Fpadder%2Fspadderpy%2Fgui%2Finputdata.py;h=0bfb44f3da3bc592100484a5e93d2bd940f783b7;hb=ecea056f6165eddf99403a8648657a9a573bcbe0;hp=7ffe653598524bac7b68e949cdcb514078445b1a;hpb=7a65c9fad427b1ccba6b9ccae612296e5092a324;p=modules%2Fsmesh.git diff --git a/src/Tools/padder/spadderpy/gui/inputdata.py b/src/Tools/padder/spadderpy/gui/inputdata.py index 7ffe65359..0bfb44f3d 100644 --- a/src/Tools/padder/spadderpy/gui/inputdata.py +++ b/src/Tools/padder/spadderpy/gui/inputdata.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2011-2015 EDF R&D +# Copyright (C) 2011-2019 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -25,10 +25,10 @@ from salome.kernel.datamodeler import DataModeler, TypeString, TypeInteger # __MEM__: Note that this module does not depend on the SPADDER # component on purpose (we could have use a derived structure of -# SPADDER_ORB.MeshJobParameter). This choice is made to ease the test +# SPADDER_ORB.MeshJobFile). This choice is made to ease the test # and development of the gui part of the plugin. If this data # structure becomes too important, we could make another arrangement -# and use directly a SPADDER_ORB.MeshJobParameter. +# and use directly a SPADDER_ORB.MeshJobFile. class InputData(DataModeler): MESHTYPES=Enumerate([ @@ -36,6 +36,8 @@ class InputData(DataModeler): 'STEELBAR' ]) + maListe=MESHTYPES.listvalues() + def __init__(self): DataModeler.__init__(self) self.addAttribute( @@ -44,18 +46,18 @@ class InputData(DataModeler): ) self.addAttribute( name = "meshName", - type = TypeString, - range = None + a_type = TypeString, + a_range = None ) self.addAttribute( name = "meshType", - type = TypeInteger, - range = self.MESHTYPES.listvalues() + a_type = TypeInteger, + a_range = [0,1] ) self.addAttribute( name = "groupName", - type = TypeString, - range = None + a_type = TypeString, + a_range = None ) #