# Create scrollbar to set parameters value

**URL:** <https://discourse.slicer.org/t/create-scrollbar-to-set-parameters-value/6184>\
**Category:** Support\
**Tags:** python\
**Created:** [March 18, 2019, 4:15am UTC](https://discourse.slicer.org/t/create-scrollbar-to-set-parameters-value/6184 "2019-03-18T04:15:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![laura.gelcano](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@laura.gelcano](https://discourse.slicer.org/u/laura.gelcano)\
**Post date:** [March 18, 2019, 4:15am UTC](https://discourse.slicer.org/t/create-scrollbar-to-set-parameters-value/6184/1 "2019-03-18T04:15:44Z")

</div>

Hi,

I would like to create a scrollbar or similar to set a parameter value with the use of python code.  
I have created some interactive buttons to get paths and volumes in my module but I don’t know how to reach this new issue.

Moreover, I would like to display changes in the scene as parameter changes value.

The idea is similar to opacity scrollbar.

Any help is kindly appreciated!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 18, 2019, 4:18am UTC](https://discourse.slicer.org/t/create-scrollbar-to-set-parameters-value/6184/2 "2019-03-18T04:18:38Z")

</div>

These tutorials should answer all your questions. If not, let us know:

[https://www.slicer.org/wiki/Documentation/Nightly/Training#Slicer4\_Programming\_Tutorial](https://www.slicer.org/wiki/Documentation/Nightly/Training#Slicer4_Programming_Tutorial)
