# How to hide the default 3D Slicer GUI with Slicelet module?

**URL:** <https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721>\
**Category:** Development\
**Created:** [July 23, 2019, 8:39am UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721 "2019-07-23T08:39:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhao\_Su](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhao_su/32/3678_2.png) [@Zhao\_Su](https://discourse.slicer.org/u/Zhao_Su)\
**Post date:** [July 23, 2019, 8:39am UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721/1 "2019-07-23T08:39:46Z")

</div>

like this

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e25b4ea25b69120b6b6d7a37d29fa368c8ab9467.png)

---

<div class="post-metadata">

**Author:** ![Zhao\_Su](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhao_su/32/3678_2.png) [@Zhao\_Su](https://discourse.slicer.org/u/Zhao_Su)\
**Post date:** [July 23, 2019, 9:03am UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721/2 "2019-07-23T09:03:49Z")

</div>

I add the slicelet example by"select Extension", am i right?  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/c/fc66c7d1dbbca8e1377e6c5bd722df7f29490c91.png)  
but it didn’t hide the disable slicer GUI

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [July 23, 2019, 10:38am UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721/3 "2019-07-23T10:38:34Z")

</div>

For Slicer 4.11 nightly, I think the encouraged method for running modules with reduced interface is to hide elements of the main GUI specifically instead of using the previously used method of specifying the `--no-main-window` command line argument and adding GUI elements.

> Slicelets are regular modules, which hide user interface elements that are not necessary for the particular workflow and provide all required widgets on their module panel.
> 
> Hiding of user interface elements can be implemented in the setup method of the module widget class, using a combination of set…Visibility methods implemented in [slicer.util](https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/util.py#L1853).

[source](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets)

The specific methods in slicer.util to use can be found here:  
[https://github.com/Slicer/Slicer/blob/e2096cc2210d0fb47da4bfa9f311e8c05149714e/Base/Python/slicer/util.py#L2025-L2094](https://github.com/Slicer/Slicer/blob/e2096cc2210d0fb47da4bfa9f311e8c05149714e/Base/Python/slicer/util.py#L2025-L2094)

---

<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:** [July 23, 2019, 1:57pm UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721/4 "2019-07-23T13:57:42Z")

</div>

Hi! What you are doing seems useful for the community, as many people have asked about a simplified segmentation tool based on Slicer. Are you planning to make yours openly accessible? I think a lot of researchers would appreciate that. Thanks!

---

<div class="post-metadata">

**Author:** ![Zhao\_Su](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhao_su/32/3678_2.png) [@Zhao\_Su](https://discourse.slicer.org/u/Zhao_Su)\
**Post date:** [July 25, 2019, 11:35am UTC](https://discourse.slicer.org/t/how-to-hide-the-default-3d-slicer-gui-with-slicelet-module/7721/5 "2019-07-25T11:35:51Z")

</div>

Thanks for your reply. I am not a professional developer. I just want to make some of work more custom friendly. And if I could, I would love to make my work openly accessible.
