# GUI creation

**URL:** https://discourse.paraview.org/t/gui-creation/2589
**Category:** ParaView Support
**Created:** [September 19, 2019, 1:38pm UTC](https://discourse.paraview.org/t/gui-creation/2589 "2019-09-19T13:38:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 19, 2019, 1:38pm UTC](https://discourse.paraview.org/t/gui-creation/2589/1 "2019-09-19T13:38:11Z")

</div>

Hi,  
happy to join in group. I am excited with paraview features. I would like to explore more about it. I am trying custom gui by python. like, Tkinter.  
but unfortunately paraview doesn’t have tkinter module. is there any possible way to create our own interactive window?

Regards,  
Viswa

---

<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: [September 20, 2019, 12:27am UTC](https://discourse.paraview.org/t/gui-creation/2589/2 "2019-09-20T00:27:13Z")

</div>

That sound like a Python View, which supports matplotlib (but not Tkinter).  
See here : [https://blog.kitware.com/paraview-python-view-is-now-more-versatile/](https://blog.kitware.com/paraview-python-view-is-now-more-versatile/)

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 26, 2019, 8:31am UTC](https://discourse.paraview.org/t/gui-creation/2589/3 "2019-09-26T08:31:33Z")

</div>

Thanks Mathieu Westphal,  
but still I couldn’t able to create GUI. can you give some examples to create buttons and labels

Regards,  
viswa

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 26, 2019, 12:52pm UTC](https://discourse.paraview.org/t/gui-creation/2589/4 "2019-09-26T12:52:39Z")

</div>

I am trying to create new menu in paraview. and add labels and buttons.  
I tried in xml also. but not getting required result

---

<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: [September 30, 2019, 3:52am UTC](https://discourse.paraview.org/t/gui-creation/2589/5 "2019-09-30T03:52:26Z")

</div>

You will have to be more precise.  
In any case, here is the general doc.  
[https://gitlab.kitware.com/paraview/paraview/blob/master/Utilities/Doxygen/pages/PluginHowto.md](https://gitlab.kitware.com/paraview/paraview/blob/master/Utilities/Doxygen/pages/PluginHowto.md)

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 5:42am UTC](https://discourse.paraview.org/t/gui-creation/2589/6 "2019-09-30T05:42:20Z")

</div>

Dear Mathieu Westphal,

Thanks for write back. I am in need of your valuable support  
I attached sample picture for GUI what I need.

1)I need to add new window–\> in that buttons, text  
2) when I press button respective python function should run

 ![Capture](https://discourse.paraview.org/uploads/default/original/2X/8/85db76f93802cf233bedd297579ea4707489309a.png)

Regards,  
Viswa

---

<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: [September 30, 2019, 5:45am UTC](https://discourse.paraview.org/t/gui-creation/2589/7 "2019-09-30T05:45:48Z")

</div>

do you want to develop in Python or C++ ?

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 5:50am UTC](https://discourse.paraview.org/t/gui-creation/2589/8 "2019-09-30T05:50:09Z")

</div>

any language is fine for me.

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 5:51am UTC](https://discourse.paraview.org/t/gui-creation/2589/9 "2019-09-30T05:51:28Z")

</div>

now I am writing all codes in python. if it possible C++ I will change all code into C++ also. now Creating GUI is important.

---

<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: [September 30, 2019, 5:52am UTC](https://discourse.paraview.org/t/gui-creation/2589/10 "2019-09-30T05:52:17Z")

</div>

Do you want this to work with the release version of ParaView or do you (and all other users that will use your plugin) build ParaView themselves ?

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 5:55am UTC](https://discourse.paraview.org/t/gui-creation/2589/11 "2019-09-30T05:55:52Z")

</div>

I want to built in paraview itself. if it is possible in plugin that also fine.  
my aim is to create window and number of buttons,  
each buttons represents some script action.  
whatever method is fine for me.

---

<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: [September 30, 2019, 5:57am UTC](https://discourse.paraview.org/t/gui-creation/2589/12 "2019-09-30T05:57:46Z")

</div>

I would recommend creating a Dock Widget plugin.

See DockWidget example in /paraview/Examples/Plugins/

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 6:03am UTC](https://discourse.paraview.org/t/gui-creation/2589/13 "2019-09-30T06:03:01Z")

</div>

do you mean in application path?  
but I couldn’t able to find plugin with in examples. I attached the screenshots

 ![Capture](https://discourse.paraview.org/uploads/default/original/2X/8/83c2c53b5e1998a7176ca6845b38018098719a5f.png)

 ![Capture1](https://discourse.paraview.org/uploads/default/original/2X/4/41f9d2eb87a8d08603c9c76a3388d1335d4fdc27.png)

---

<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: [September 30, 2019, 6:03am UTC](https://discourse.paraview.org/t/gui-creation/2589/14 "2019-09-30T06:03:49Z")

</div>

You are not building ParaView but you are using the release. Do you really want to build (as in “Compile the source of”) ParaView ?

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 6:09am UTC](https://discourse.paraview.org/t/gui-creation/2589/15 "2019-09-30T06:09:45Z")

</div>

I am beginner to paraview. I am trying to switch post processing tool from other to paraview.  
I am not sure about building. I am finding easiest way to achieve the requirement.  
by using python I achieved many functions.  
now window creation is getting problem.  
if it is possible to use in release version, that also fine.  
if I need to build, need some guidance that how to do.

---

<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: [September 30, 2019, 6:11am UTC](https://discourse.paraview.org/t/gui-creation/2589/16 "2019-09-30T06:11:42Z")

</div>

Ok, the most easy way for you maybe to do it in Python.

- Open ParaView
- View -\> PythonShell
- Write the code to create the window, the button and all, in a python script
- Load the script in the python shell

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 6:15am UTC](https://discourse.paraview.org/t/gui-creation/2589/17 "2019-09-30T06:15:26Z")

</div>

looks great! I tried this only.  
but I couldn’t able to create window. because, I couldn’t able to find gui creation modules in paraview python.  
normally I will use tkinter module to create window in python. this is not available.

---

<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: [September 30, 2019, 6:17am UTC](https://discourse.paraview.org/t/gui-creation/2589/18 "2019-09-30T06:17:11Z")

</div>

You can use PythonQt.

---

<div class="post-metadata">

### Author: ![Viswa\_L](https://discourse.paraview.org/user_avatar/discourse.paraview.org/viswa_l/32/2043_2.png) [@Viswa\_L](https://discourse.paraview.org/u/Viswa_L)
#### Post date: [September 30, 2019, 6:20am UTC](https://discourse.paraview.org/t/gui-creation/2589/19 "2019-09-30T06:20:48Z")

</div>

I tried PythonQt. this module also showing error.  
I attached the image below

 ![Capture](https://discourse.paraview.org/uploads/default/original/2X/c/ccbe881944eb16ac958533a9fbe3b1316271bcae.png)

---

<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: [September 30, 2019, 6:49am UTC](https://discourse.paraview.org/t/gui-creation/2589/20 "2019-09-30T06:49:48Z")

</div>

Indeed, in this case you may need to build ParaView yourself and use C++ plugins.  
[https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md](https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md)

[Next page](https://discourse.paraview.org/t/gui-creation/2589.md?page=2)
