[Paraview-developers] ParaView XML plugin - help with alignment
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Sep 14 10:21:07 EDT 2017
The only way currently is to create a custom widget. Create a custom
property group widget and then grouping the two properties as follows:
.....
<PropetyGroup label="foo" panel_widget="MyCustomWidget">
<Property name="CheckBox1" />
<Property name="CheckBox2" />
</PropertyGroup>
On Thu, Sep 14, 2017 at 10:15 AM, Chiranjib Sur <sur.chiranjib at gmail.com> wrote:
> Hi,
> I am writing a XML plugin for paraview and I am adding boolean type GUI
> parameters (appear as checkbox in the property panel) in the following way
>
> <IntVectorProperty name="Checkbox 1"
> command="setProperty1"
> number_of_elements="1"
> default_values="1">
> <BooleanDomain name="bool"/>
> </IntVectorProperty>
>
>
> <IntVectorProperty name="Checkbox 2"
> command="setProperty2"
> number_of_elements="1"
> default_values="1">
> <BooleanDomain name="bool"/>
> </IntVectorProperty>
>
>
> They appear in the GUI like the following
>
>
>
> I want to align them side by side, so that they appear like this
>
>
>
>
>
>
> How do I do that?
>
>
> Later using the pqServerManager proxy, I need to know what values are set
> for the checkboxes.
>
> Any expert clues?
>
> Thanks in advance.
> Chiranjib
>
>
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
More information about the Paraview-developers
mailing list