def setup(self):
        ScriptedLoadableModuleWidget.setup(self)

        # Just create a container for the widget
        mainAreaCollapsibleButton = ctk.ctkCollapsibleButton()
        mainAreaCollapsibleButton.text = "Main parameters"
        self.layout.addWidget(mainAreaCollapsibleButton)
        self.mainAreaLayout = qt.QVBoxLayout(mainAreaCollapsibleButton)

        # self.viewer = MIPViewerWidget(mainAreaCollapsibleButton)
        self.viewer = MIPViewerWidget(mainAreaCollapsibleButton, MIPViewerWidget.CONTEXT_UNKNOWN)
        self.viewer.setup()
        # self.viewer.activateEnhacedVisualization(True)
        self.layout.addStretch(1)
This is called one time when the module GUI is initialized
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_MIPViewer/CIP_MIPViewer.py/CIP_MIPViewerWidget.setup