# Is there any way to add widgets defined in some scripted module to a new scripted module?

**URL:** https://discourse.slicer.org/t/is-there-any-way-to-add-widgets-defined-in-some-scripted-module-to-a-new-scripted-module/11334
**Category:** Support
**Created:** [April 28, 2020, 9:47pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-add-widgets-defined-in-some-scripted-module-to-a-new-scripted-module/11334 "2020-04-28T21:47:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xlucox](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xlucox/32/6381_2.png) [@xlucox](https://discourse.slicer.org/u/xlucox)
#### Post date: [April 28, 2020, 9:47pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-add-widgets-defined-in-some-scripted-module-to-a-new-scripted-module/11334/1 "2020-04-28T21:47:47Z")

</div>

Hi !!!

I’m developing a new scripted module and I would like to add to it some widgets with the same functionality that these have in another module. I wonder if there is any way to do this without copping and pasting all the code.

Thank you.

---

<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 28, 2020, 10:00pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-add-widgets-defined-in-some-scripted-module-to-a-new-scripted-module/11334/2 "2020-04-28T22:00:47Z")

</div>

Module user interfaces are mostly built from reusable high-level widgets. You can drag-and-drop them into your own module GUI in Qt Designer, so you don’t even need to write any code to create your GUI (only to specify the behavior). See step-by-step tutorial here: [https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s\_Slicer\_bootcamp\_training\_materials](https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s_Slicer_bootcamp_training_materials)
