# How do I use Python to call a Transform module to another module

**URL:** https://discourse.slicer.org/t/how-do-i-use-python-to-call-a-transform-module-to-another-module/16711
**Category:** Support
**Created:** [March 23, 2021, 8:05am UTC](https://discourse.slicer.org/t/how-do-i-use-python-to-call-a-transform-module-to-another-module/16711 "2021-03-23T08:05:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Carl098](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@Carl098](https://discourse.slicer.org/u/Carl098)
#### Post date: [March 23, 2021, 8:05am UTC](https://discourse.slicer.org/t/how-do-i-use-python-to-call-a-transform-module-to-another-module/16711/1 "2021-03-23T08:05:51Z")

</div>

self.transformsLogic = slicer.modules.transforms.logic()  
self.transformsModuleWidget = PythonQt.qSlicerTransformsModuleWidgets.qSlicerTransformsModuleWidget()  
editWidget = slicer.util.findChild(self.transformsModuleWidget, ‘DisplayEditCollapsibleWidget’)  
vrGroupBoxLayout.addRow(editWidget)

---

<div class="post-metadata">

### Author: ![Carl098](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@Carl098](https://discourse.slicer.org/u/Carl098)
#### Post date: [March 23, 2021, 8:07am UTC](https://discourse.slicer.org/t/how-do-i-use-python-to-call-a-transform-module-to-another-module/16711/3 "2021-03-23T08:07:47Z")

</div>

Sorry, I am a beginner, I’d like to know how to write the correct code. Thanks!

---

<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: [March 23, 2021, 12:14pm UTC](https://discourse.slicer.org/t/how-do-i-use-python-to-call-a-transform-module-to-another-module/16711/4 "2021-03-23T12:14:14Z")

</div>

In general, you are not supposed to modify any other module’s GUI, but you can interact with another module using MRML and module logic classes and you can put into your module GUI Qt widgets that other modules provide. See [tutorials](https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s_Slicer_bootcamp_training_materials).

If you describe what you want to achieve then we can give more specific advice.
