# Is it possible to show/hide toolbars in python scripts (macro) in Paraview?

**URL:** https://discourse.paraview.org/t/is-it-possible-to-show-hide-toolbars-in-python-scripts-macro-in-paraview/3918
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [March 30, 2020, 8:42pm UTC](https://discourse.paraview.org/t/is-it-possible-to-show-hide-toolbars-in-python-scripts-macro-in-paraview/3918 "2020-03-30T20:42:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![leoncwu](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@leoncwu](https://discourse.paraview.org/u/leoncwu)
#### Post date: [March 30, 2020, 8:42pm UTC](https://discourse.paraview.org/t/is-it-possible-to-show-hide-toolbars-in-python-scripts-macro-in-paraview/3918/1 "2020-03-30T20:42:30Z")

</div>

Hi,

I am trying to automate the visualization of data in Paraview by using the macro (python scripting). I was wondering if it would be possible to show/hide the toolbars (such as Main Controls, VCR controls, Pipeline Browser, Information, etc.) by using the macro (python script). I know I can hide all those toolbars in the GUI by a few clicks, but I hope to control them in the python scripts. I also tried to start a trace to record the actions, but it seemed to ignore the show/hide of toolbars.

Any suggestions will be appreciated.

---

<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: [March 31, 2020, 1:35am UTC](https://discourse.paraview.org/t/is-it-possible-to-show-hide-toolbars-in-python-scripts-macro-in-paraview/3918/2 "2020-03-31T01:35:54Z")

</div>

Short answer, no, it is not supported by pvpython to control the GUI. Simply because pvpython can be used without a GUI at all.

Usually your usecase is covered by either using a dedicated Qt configuration file to setup the application automatically and statically, or by create a C++ Qt autostart plugin to setup the application dynamically.

That being said, you can still use pyQt to recover to Qt object and do whatever you want with it.  
But this is not recommend and prone to break at any point if any change is made to the GUI.

---

<div class="post-metadata">

### Author: ![leoncwu](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@leoncwu](https://discourse.paraview.org/u/leoncwu)
#### Post date: [March 31, 2020, 1:48pm UTC](https://discourse.paraview.org/t/is-it-possible-to-show-hide-toolbars-in-python-scripts-macro-in-paraview/3918/3 "2020-03-31T13:48:32Z")

</div>

Hi Mathieu, thank you so much for your help. That makes a lot of sense.
