# gui elements created dynamically

**URL:** https://discourse.paraview.org/t/gui-elements-created-dynamically/1827
**Category:** Development
**Created:** [May 10, 2019, 7:26pm UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827 "2019-05-10T19:26:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![marco\_accardo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/marco_accardo/32/1445_2.png) [@marco\_accardo](https://discourse.paraview.org/u/marco_accardo)
#### Post date: [May 10, 2019, 7:26pm UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827/1 "2019-05-10T19:26:21Z")

</div>

Is it possible using python plugin/live-source to have the gui pane dynamically populated at run time.  
after importing an stl file I want to put a range control on the gui based on the data i just read in.  
I see how to define things statically with decorators and such but cannot find if its possible for dynamic creation.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 13, 2019, 3:48pm UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827/2 "2019-05-13T15:48:23Z")

</div>

It may be possible to do something close but you will have to give more details and contexts.

---

<div class="post-metadata">

### Author: ![marco\_accardo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/marco_accardo/32/1445_2.png) [@marco\_accardo](https://discourse.paraview.org/u/marco_accardo)
#### Post date: [May 13, 2019, 5:32pm UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827/3 "2019-05-13T17:32:02Z")

</div>

let me try then.  
I bring in a geometry file of a part using just basic paraview file open.  
I now have a external data file that contains x,y,z coordinates, value, value type .  
The x,y,z coordinates align/map to a point on the part.  
My goal is to show the value of a particular value type on my part ideally via a arrow showing magnitude and directions (in/out from face of part at the point).  
I am trying to see what the simplest/easiest approach would be using python and paraview.  
I have been reading about filters, programmable sources, plugins and it appears to have a very rich landscape but I am having trouble picking a direction.  
The idea behind the dynamic gui population is that the I would use the value type infomation as a way of deciding which values to show. So the value types are not known till you read the file and I wanted a way to select/show only x,y,x values for a selected value type in the external file.

Hope this give a bit more context.  
Thanks  
Marco

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2019, 7:19am UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827/4 "2019-05-14T07:19:12Z")

</div>

Sounds like you can just read your file and use the glyph filter or the glyph representation.

---

<div class="post-metadata">

### Author: ![marco\_accardo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/marco_accardo/32/1445_2.png) [@marco\_accardo](https://discourse.paraview.org/u/marco_accardo)
#### Post date: [May 15, 2019, 3:02pm UTC](https://discourse.paraview.org/t/gui-elements-created-dynamically/1827/5 "2019-05-15T15:02:20Z")

</div>

Hi  
I ended up making a custom reader based off the csv pyhon reader and got the data into a table, then used tableToPoints followed by add glyph to my pipeline.

I would of liked add the glyh directly from the reader but could not find any examples that made glyphs from tables within a python plugin…
