<div dir="ltr">Thanks again, <div>Could you point me to some source code inside paraview through which I can learn?</div><div><br></div><div>Chiranjib</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 14, 2017 at 8:02 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oops, sorry yes, it should have been `panel_widget`. And you'll need<br>
to create a custom pqPropertyWidget subclass to do this. There's no<br>
property-widget that does this in ParaView.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Sep 14, 2017 at 10:28 AM, Chiranjib Sur <<a href="mailto:sur.chiranjib@gmail.com">sur.chiranjib@gmail.com</a>> wrote:<br>
> Hi Utkarsh,<br>
> Thanks for your quick reply.<br>
><br>
> I already created the property group (like the following) but the checkboxes<br>
> are appearing vertically one below the other. I need to display those side<br>
> by side.<br>
><br>
> <PropetyGroup label="foo" panel_visibility="<wbr>MyCustomWidget"><br>
> <Property name="CheckBox1" /><br>
> <Property name="CheckBox2" /><br>
> </PropertyGroup><br>
><br>
> I see that in your example, you have used panel_widget instead of<br>
> panel_visibility.<br>
> Is this the trick to achieve what I am looking for?<br>
><br>
> Thanks again,<br>
> Chiranjib<br>
><br>
> On Thu, Sep 14, 2017 at 7:51 PM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> The only way currently is to create a custom widget. Create a custom<br>
>> property group widget and then grouping the two properties as follows:<br>
>><br>
>> .....<br>
>> <PropetyGroup label="foo" panel_widget="MyCustomWidget"><br>
>> <Property name="CheckBox1" /><br>
>> <Property name="CheckBox2" /><br>
>> </PropertyGroup><br>
>><br>
>><br>
>><br>
>> On Thu, Sep 14, 2017 at 10:15 AM, Chiranjib Sur <<a href="mailto:sur.chiranjib@gmail.com">sur.chiranjib@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> > I am writing a XML plugin for paraview and I am adding boolean type GUI<br>
>> > parameters (appear as checkbox in the property panel) in the following<br>
>> > way<br>
>> ><br>
>> > <IntVectorProperty name="Checkbox 1"<br>
>> > command="setProperty1"<br>
>> > number_of_elements="1"<br>
>> > default_values="1"><br>
>> > <BooleanDomain name="bool"/><br>
>> > </IntVectorProperty><br>
>> ><br>
>> ><br>
>> > <IntVectorProperty name="Checkbox 2"<br>
>> > command="setProperty2"<br>
>> > number_of_elements="1"<br>
>> > default_values="1"><br>
>> > <BooleanDomain name="bool"/><br>
>> > </IntVectorProperty><br>
>> ><br>
>> ><br>
>> > They appear in the GUI like the following<br>
>> ><br>
>> ><br>
>> ><br>
>> > I want to align them side by side, so that they appear like this<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > How do I do that?<br>
>> ><br>
>> ><br>
>> > Later using the pqServerManager proxy, I need to know what values are<br>
>> > set<br>
>> > for the checkboxes.<br>
>> ><br>
>> > Any expert clues?<br>
>> ><br>
>> > Thanks in advance.<br>
>> > Chiranjib<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>> ><br>
>> > Search the list archives at:<br>
>> > <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>