# Simplify Slicer or Remove some modules from Slicer

**URL:** <https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545>\
**Category:** Support\
**Created:** [July 12, 2019, 6:13am UTC](https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545 "2019-07-12T06:13:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikecsu](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@mikecsu](https://discourse.slicer.org/u/mikecsu)\
**Post date:** [July 12, 2019, 6:13am UTC](https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545/1 "2019-07-12T06:13:04Z")

</div>

Operating system:win10  
Slicer version:4.10.0  
Expected behavior:  
Actual behavior:

Hi,everyone. I am studying on the source code of slicer 4.10.0 and i am wondering  
if it is possible to cut off some modules (that i may never use) from slicer,  
cause now there are too many of them, which sometimes make it difficult and  
time-consuming to find the module that i really want .

and also i tend to simplify some specific modules by only maintaining some  
functionalities that i want. So i would like to know if it is possible to do that?  
And are there any suggestions can be offered to me to help me to do this task ?

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [July 12, 2019, 8:06am UTC](https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545/2 "2019-07-12T08:06:23Z")

</div>

If you would like to disable some modules you could do it:

- directly from Slicer by disabling specific modules in the application settings (or using the `--disable-modules` command line option)
- or you could at build time setting these options: [Can you explain the CMake variables Slicer\_\<moduleType\>MODULES\_DISABLED|ENABLED? - #2 by jcfr](https://discourse.slicer.org/t/can-you-explain-the-cmake-variables-slicer-moduletype-modules-disabled-enabled/7494/2)

> tend to simplify some specific modules by only maintaining some functionalities that i want.

Modules are composed integrating widgets. This means you could easily create your own module re-using widgets provided by other module.

Here are example of re-usable module widgets and associated Qt designer plugins: [Slicer/Modules/Loadable/Markups/Widgets at main · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/tree/master/Modules/Loadable/Markups/Widgets)

If an existing module doesn’t provide re-usable components, let us know and we can provide guidance to refactor the code.

It is also possible to improve existing widgets to give you the required flexibility to craft your own module.

---

<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 12, 2019, 12:48pm UTC](https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545/3 "2019-07-12T12:48:22Z")

</div>

I think what would be ideal for you is a slicelet or a Slicer custom app  
[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets)

Let us know if you need help.

---

<div class="post-metadata">

**Author:** ![mikecsu](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@mikecsu](https://discourse.slicer.org/u/mikecsu)\
**Post date:** [July 15, 2019, 6:41am UTC](https://discourse.slicer.org/t/simplify-slicer-or-remove-some-modules-from-slicer/7545/4 "2019-07-15T06:41:04Z")

</div>

@cpinter @jcfr Thanks for the extremely helpful reply. I tried and it works very well .  
But for the widget part, i still have problems which comes from the combination of  
C++ and Python, i assume.

More specific, in segment editor module, the main frame is achieved in C++ and Qt.  
But when it comes to the “Effects”(see pic 1 below, red rectangle), all of them are  
achieved with Python, so i am confused and don’t know how to do, cause i only  
want part of them and delete/hide others. For example, i only want to keep some  
functionalities in yellow circle(see pic 2 ). Any advice ?

**pic 1**

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

**pic 2**  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/7/27a9a713919695d63f853101cec8cf448440ff8f.png)
