# Python Plugin Filter UI Missing Boolean (Checkbox)

**URL:** https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099
**Category:** ParaView Support
**Tags:** python
**Created:** [March 6, 2024, 9:54pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099 "2024-03-06T21:54:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [March 6, 2024, 9:54pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099/1 "2024-03-06T21:54:02Z")

</div>

I recently updated to ParaView 5.12.0 and found that a custom reader is now missing an element of the UI. Specifically, the “Pad Data” checkbox at the bottom of the properties is no longer visible.

Otherwise the plugin seems to function without issue.

What do I need to change in the code to make the checkbox visible?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/323abb1f17d5a3f4290df67bb80fd6fa33255d8e.png)

The specific associated code:

```python
@smproperty.xml("""
    <IntVectorProperty name="PadData"
        label="Pad Data"
        command="SetPadStatus"
        number_of_elements="1"
        default_values="1"
        panel_visibility="always">
        <BooleanDomain name="bool" />
        <Documentation>If checked, dataset will be padded at all timestates
            to ensure consistent block indices</Documentation>
    </IntVectorProperty>
    """)
def SetPadStatus(self, val):
    '''Set attribute to signal whether data should be padded when RequestData is called
    '''
    self.pad_data = val
    self.Modified()

```

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 6, 2024, 10:14pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099/2 "2024-03-06T22:14:16Z")

</div>

That is strange. Nothing that comes to mind should have changed boolean int vector properties from being shown as a checkbox. Let me investigate.

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [March 7, 2024, 5:49pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099/3 "2024-03-07T17:49:39Z")

</div>

Oh and when I say updated to 5.12, that’s coming from 5.9. So the different behavior could be present in 5.10 or 5.11. I can test against those versions if that gives you some guidance.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 7, 2024, 6:59pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099/4 "2024-03-07T18:59:50Z")

</div>

> [@theodorebaltis](#):
>
> `panel_visibility="always"`

If you remove `panel_visibility="always"`, you’ll see the checkbox. AFAICT “always” is not a valid setting for this property. Logic may have changed in the GUI code since 5.9 that causes ParaView to treat an unknown visibility attribute the same as “never”.

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [March 7, 2024, 7:06pm UTC](https://discourse.paraview.org/t/python-plugin-filter-ui-missing-boolean-checkbox/14099/5 "2024-03-07T19:06:59Z")

</div>

Interesting. Thanks so much!
