X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2Fpadder%2Fspadderpy%2Fgui%2Finputdata.py;h=398afec1e8e34bcfcaa86d6560351c7ef06c9c64;hp=278d2626e7ec905cfb6ff5a50d21ca3afd15a6cb;hb=0fc0831670e27a5611b941c52dc152fd63964515;hpb=bd8f1aee7c78f7d2eb82bd4fec5e08c9e3d280ce diff --git a/src/Tools/padder/spadderpy/gui/inputdata.py b/src/Tools/padder/spadderpy/gui/inputdata.py index 278d2626e..398afec1e 100644 --- a/src/Tools/padder/spadderpy/gui/inputdata.py +++ b/src/Tools/padder/spadderpy/gui/inputdata.py @@ -1,10 +1,10 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2011-2013 EDF R&D +# Copyright (C) 2011-2020 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 # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -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 ) #