# Hiding "Reload & Test" in Specific Module Panels

**URL:** <https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555>\
**Category:** Support\
**Created:** [April 17, 2024, 10:03am UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555 "2024-04-17T10:03:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [April 17, 2024, 10:03am UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/1 "2024-04-17T10:03:06Z")

</div>

Hi all,

I usually work with several module panels open at the same time.  
Is it possible to hide the “Reload & Test” option in specific module panels?

Best,

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [April 17, 2024, 3:07pm UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/2 "2024-04-17T15:07:16Z")

</div>

You can hide the reload & test section for specific modules in python like this:

```auto
slicer.modules.segmenteditor.widgetRepresentation().self().reloadCollapsibleButton.visible = False

```

---

<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:** [April 18, 2024, 12:16am UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/3 "2024-04-18T00:16:30Z")

</div>

> [@park](#):
>
> I usually work with several module panels open at the same time.

Do you mean you add an _entire module widget_ into your own module widget? This is not supported and can lead to many issues (for example, only one module widget can be in “entered” state). Instead, you can add any reusable widgets to your module that other modules provide.

---

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [April 22, 2024, 8:39am UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/4 "2024-04-22T08:39:24Z")

</div>

I want to display multiple widgets simultaneously as shown in the picture. Would this pose any long-term issues? If there are any issues, could I gain insights into implementing a layout like the one shown below? Even a little advice would be greatly helpful.

 ![example](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/c/cc61e3d47b838f9a055f0c4eac5469703f1fdc4e.png)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 22, 2024, 2:31pm UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/5 "2024-04-22T14:31:37Z")

</div>

When I had to do something similar, I created custom layouts, in which some views showed the image (2D, 3D, anything that is supported currently), and other views contained a widget that I could set from my custom app code. These widgets were not entire Slicer module widgets (for the reason @lassoan mentioned), but widgets that I created myself. In this way you cannot get floating widgets, but at least a more flexible control over the layout. See an example of such a layout here: [https://youtu.be/zs-0mZQLB48?t=137](https://youtu.be/zs-0mZQLB48?t=137)

---

<div class="post-metadata">

**Author:** ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)\
**Post date:** [December 5, 2024, 2:16pm UTC](https://discourse.slicer.org/t/hiding-reload-test-in-specific-module-panels/35555/6 "2024-12-05T14:16:14Z")

</div>

Did you write the Dent.AI app shown in the video as a Python Scripted Module? Or do you have to do it in C++ to get this level of control over all the visual aspects?
