Attached is an example plugin code that demonstrates how this could be done.
Utkarsh On Wed, Nov 19, 2014 at 12:24 PM, Gonzalo Brito Gadeschi <g.br...@aia.rwth-aachen.de> wrote: > I'm trying to write an IntVectorProperty with two drop down list next to > each other. > > Ideally it would call a function that takes to arguments, and passes the > value of each drop down menu to each argument. I am however open to > workarounds. > > This is my best attempt but of course it crashes paraview: > > <IntVectorProperty name="Neighbors" > command="set_load_node_neighbors" > number_of_elements="2" > default_values="-1 -2"> > <EnumerationDomain name="enum"> > <Entry value="-1" text="None"/> > <Entry value="1" text="Faces"/> > <Entry value="2" text="Edges"/> > <Entry value="3" text="Corners"/> > </EnumerationDomain> > <EnumerationDomain name="enum"> > <Entry value="-2" text="None"/> > <Entry value="4" text="Same level"/> > <Entry value="5" text="Children level"/> > <Entry value="6" text="Both"/> > </EnumerationDomain> > </IntVectorProperty> > > Any ideas / suggestions about how to achieve this? > > Bests, > Gonzalo > > -- > Dipl.-Ing. Gonzalo Brito Gadeschi > Institute of Aerodynamics and Chair of Fluid Mechanics > RWTH Aachen University > Wuellnerstraße 5a > D-52062 Aachen > Germany > Phone: ++49-(0)241-80-94821 > Fax: ++49-(0)241-80-92257 > E-mail: g.br...@aia.rwth-aachen.de > Internet: www.aia.rwth-aachen.de > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview >
DualComboBoxPropertyWidget.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview