MantisBT - ParaView
View Issue Details
0010642ParaViewFeaturepublic2010-04-29 11:412016-08-12 09:58
Paul Edwards 
Kitware Robot 
normalminoralways
closedmoved 
Development 
 
0010642: Enumeration values in lists for Python
Example XML:

<IntVectorProperty name="Items" command="AddItems" clean_command="RemoveAllItems" repeat_command="1" number_of_elements_per_command="1">
    <EnumerationDomain name="array_list">
        <Entry value="1" text="item 1"/>
        <Entry value="2" text="item 2"/>
        <Entry value="3" text="item 3"/>
    </EnumerationDomain>
</IntVectorProperty>

It would be desirable to set the items in python by their name - currently it is necessary to call:

filter.Items = [1,2]

rather than:

filter.items = ['item 1', 'item 2']
No tags attached.
Issue History
2010-04-29 11:41Paul EdwardsNew Issue
2011-06-16 13:10Zack GalbreathCategoryFeature Request => Feature
2016-08-12 09:58Kitware RobotNote Added: 0037818
2016-08-12 09:58Kitware RobotStatusexpired => closed
2016-08-12 09:58Kitware RobotResolutionopen => moved
2016-08-12 09:58Kitware RobotAssigned To => Kitware Robot

Notes
(0037818)
Kitware Robot   
2016-08-12 09:58   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.