# Customize the Main Window

**URL:** <https://discourse.slicer.org/t/customize-the-main-window/13610>\
**Category:** Development\
**Created:** [September 22, 2020, 1:28pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610 "2020-09-22T13:28:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 22, 2020, 1:28pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/1 "2020-09-22T13:28:51Z")

</div>

Is there a way to delete the effects case since I only need 4 of the buttons that I already made myself:  
I’ve already been able to delete the 3d slicer logo using: slicer.util.findChild(slicer.util.mainWindow(), ‘LogoLabel’).visible = False

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/7/f71f63df91e03ebf358090846ed4b6f860c3aaa7.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/2/a2effe9405831d8fbdaa237e5ab0d0da4800ac43.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:** [September 22, 2020, 1:33pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/2 "2020-09-22T13:33:19Z")

</div>

Yes, you can do it like this:

```auto
segmentEditorWidget.unorderedEffectsVisible = False
segmentEditorWidget.setEffectNameOrder(['Paint', 'Draw', 'Erase', 'Smoothing'])

```

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 22, 2020, 1:43pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/3 "2020-09-22T13:43:48Z")

</div>

Thanks a lot for responding that quick!  
In the future I might want the main window to not have the help&Acknowledgment, Data Probe and Masking visible as well in order to make a very clear user’s interface. Is it possible?

---

<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:** [September 22, 2020, 1:48pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/4 "2020-09-22T13:48:16Z")

</div>

We call these kinds of customized Slicer applications Slicelets:

> **[Documentation/Nightly/Developers/Slicelets - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets)**

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 22, 2020, 1:56pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/5 "2020-09-22T13:56:19Z")

</div>

I have been reading about these and it seems that can be a good alternative for my needs but I did not really understand how to make one, where to start, what’s needed. That is why I chose Jupyter Notebook book at first and also the fact that it can be accessible from any computer.

---

<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:** [September 22, 2020, 2:06pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/6 "2020-09-22T14:06:47Z")

</div>

The Slicelet page contains an example that you can change according to your needs:

> **[lassoan/SlicerSimpleWorkflows](https://github.com/lassoan/SlicerSimpleWorkflows/tree/master/QuickSegment)**
>
> Examples of simple application-specific workflows implemented using 3D Slicer - lassoan/SlicerSimpleWorkflows

You can also create a Slicer custom application if you want something more complex:

> **[KitwareMedical/SlicerCustomAppTemplate](https://github.com/KitwareMedical/SlicerCustomAppTemplate)**
>
> Template to be used as a starting point for creating a custom 3D Slicer application - KitwareMedical/SlicerCustomAppTemplate

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 22, 2020, 2:13pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/7 "2020-09-22T14:13:26Z")

</div>

Thank you !  
I’m going to try launching the quick segment example to see how it looks

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.slicer.org/u/Hugo)\
**Post date:** [September 23, 2020, 12:22pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/8 "2020-09-23T12:22:44Z")

</div>

Hello everyone,

I’ve managed to remove “Data Probe” from the main window using:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/b/1ba0c22764d89d5a574e15593fbd9c74b050c061.png)

But I have issue trying to remove help&Acknowledgment:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/9/392abe47e461f6ecb37d30917102df552cb207f7.png)

And delete some of the module choices (example: to only keep segmentation, segment editor, models and data visible in this column:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/1/f1f4ac7882eb5fc4f4f9c4aa4a5860b29a7420b1.png)

Big thanks in advance your help has been very precious to me,

Hugo

---

<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:** [September 23, 2020, 3:38pm UTC](https://discourse.slicer.org/t/customize-the-main-window/13610/9 "2020-09-23T15:38:08Z")

</div>

You can hide parts of the GUI using helper functions in slicer.util:

```python
# Hide data probe
slicer.util.setDataProbeVisible(False)
# hide Help & Acknowledgement section
slicer.util.setModuleHelpSectionVisible(False)

```

To restrict what modules the user can select, you can hide the “Module selection” toolbar and set the modules you want to offer as “Favorite modules” in application settings (`Modules/FavoriteModules`).
