# setting doublevector label dynamically in VTKPythonAlgorithmBase

**URL:** https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934
**Category:** Development
**Created:** [April 12, 2021, 1:43pm UTC](https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934 "2021-04-12T13:43:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Bordeu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/felipe_bordeu/32/6143_2.png) [@Felipe\_Bordeu](https://discourse.paraview.org/u/Felipe_Bordeu)
#### Post date: [April 12, 2021, 1:43pm UTC](https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934/1 "2021-04-12T13:43:20Z")

</div>

Hello,

I have a prototype reader using VTKPythonAlgorithmBase, I’m able to set the range of a doublevector property dynamically (using an auxiliary function with a specific xml). But can I set the name of the slider dynamically using the file data?. For the moment I use an infromation\_only stringvector to put a dynamic string on the gui from python but this is not very nice (the string is disable from edition so very difficult to read).

![image](https://discourse.paraview.org/uploads/default/original/2X/1/116fe9701f965fd7d9e235d7a5ac209093faca88.png)

Felipe

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 12, 2021, 2:33pm UTC](https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934/2 "2021-04-12T14:33:58Z")

</div>

No, this is not supported. Changing property names will cause issues and is definitely not recommended. This sounds like a perfect candidate for a custom property group widget. Create a new `pqPropertyWidget` that shows a list of sliders with proper names.

---

<div class="post-metadata">

### Author: ![Felipe\_Bordeu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/felipe_bordeu/32/6143_2.png) [@Felipe\_Bordeu](https://discourse.paraview.org/u/Felipe_Bordeu)
#### Post date: [April 12, 2021, 2:49pm UTC](https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934/3 "2021-04-12T14:49:15Z")

</div>

ok thanks for the fast answer. This means a need to do some c++ development. I was trying to avoid the c++ development. Because it means a need a client side plugin (qt dependent) and I need to compile the plugin for all platforms. For the moment (is just for a prototype) I’m gonna stick with my ugly solution.

If a create a generic pqPropertyWidget (to be used with the “panel\_widget=” ), can I push (MR) it to the ParaView sources so in the next versions I can develop a 100% python plugin?.

I think the VTKPythonAlgorithmBase class had a big impact on the scientific community. It facilitate the development (prototyping) of reader/filter/writer and make it very easy the distribution (no compilation) of theses plugins.

Thanks again.  
Felipe

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 12, 2021, 2:59pm UTC](https://discourse.paraview.org/t/setting-doublevector-label-dynamically-in-vtkpythonalgorithmbase/6934/4 "2021-04-12T14:59:02Z")

</div>

> [@Felipe\_Bordeu](#):
>
> If a create a generic pqPropertyWidget (to be used with the “panel\_widget=” ), can I push (MR) it to the ParaView sources so in the next versions I can develop a 100% python plugin?.

Indeed. No objections to extending the default set of widget types supported by ParaView.
