# Boolean property on VTKPythonAlgorithmBase with checkbox

**URL:** https://discourse.paraview.org/t/boolean-property-on-vtkpythonalgorithmbase-with-checkbox/12758
**Category:** Development
**Created:** [August 27, 2023, 11:31am UTC](https://discourse.paraview.org/t/boolean-property-on-vtkpythonalgorithmbase-with-checkbox/12758 "2023-08-27T11:31:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![estan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/estan/32/6230_2.png) [@estan](https://discourse.paraview.org/u/estan)
#### Post date: [August 27, 2023, 11:31am UTC](https://discourse.paraview.org/t/boolean-property-on-vtkpythonalgorithmbase-with-checkbox/12758/1 "2023-08-27T11:31:11Z")

</div>

Hi folks,

We have a custom file reading Python algorithm that inherit `VTKPythonAlgorithmBase`.

Now I’d like to offer a user-controllable boolean property on it. The user should be able to toggle it using a checkbox in ParaView, next to the File Name property.

Is it possible? I looked at the decorators available in `vtkmodules.util.vtkAlgorithm.smproperty`, but there doesn’t seem to be a boolean one. Is it possible some other way?

---

<div class="post-metadata">

### Author: ![estan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/estan/32/6230_2.png) [@estan](https://discourse.paraview.org/u/estan)
#### Post date: [August 27, 2023, 11:38am UTC](https://discourse.paraview.org/t/boolean-property-on-vtkpythonalgorithmbase-with-checkbox/12758/2 "2023-08-27T11:38:32Z")

</div>

Apologies, seems this has been answered before at [Checkbox decorator in Python Plugin - #2 by mwestphal](https://discourse.paraview.org/t/checkbox-decorator-in-python-plugin/7656/2)

I’ll work off that and see where it gets me!
