[Paraview] GUIToolbar in python? or XML to python

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Jan 15 09:25:33 EST 2009


> Hi there is there a way to create a GUIToolbar icon in python

* Not really. Python cannot be used to control/modify the GUI
components per say.

> or is there to write a XML "view", that trows the data parameters to a
> python script, instead of c++ classes,
> pretty much like the helix.xml plugin example.

 * Well, in your "view" plugin, you can create a new vtkSMViewProxy
subclass that passes parameters to an internal python interpretor.
Otherwise however, there's no direct way of doing this.

> btw how can I "hide" the ...from the helix source plugin!!!

* To hide any property use the "show" hint as under:

<Proxy ...>
  ...
  <Hints>
    <Property name="Script" show="0" />
    <!-- this will not show the "Script" property in the GUI -->
  </Hints>
</Proxy>

Utkarsh


More information about the ParaView mailing list