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

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

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

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.

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

1 Like