# Help with parameterNodeWrapper

**URL:** <https://discourse.slicer.org/t/help-with-parameternodewrapper/33582>\
**Category:** Development\
**Tags:** python\
**Created:** [January 2, 2024, 5:59am UTC](https://discourse.slicer.org/t/help-with-parameternodewrapper/33582 "2024-01-02T05:59:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmhuie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jmhuie/32/7086_2.png) [@jmhuie](https://discourse.slicer.org/u/jmhuie)\
**Post date:** [January 2, 2024, 5:59am UTC](https://discourse.slicer.org/t/help-with-parameternodewrapper/33582/1 "2024-01-02T05:59:06Z")

</div>

I am trying to familiarize myself with using a parameterNodeWrapper to save parameters for my custom modules. Based on the documentation and analyzing the exampled scripted modules from the Extension Wizard, I have a general understanding of how to connect the selected SegmentationNode from a qMRMLNodeComboBox to the parameterNode. However, I am currently using the qMRMLSegmentSelectorWidget and would like to set up parameters for the segmentationNode and the selected segments, but I’m not sure if that’s even possible. If it is, I’m not sure how to go about that. Help would be appreciated.

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:** [January 3, 2024, 6:02am UTC](https://discourse.slicer.org/t/help-with-parameternodewrapper/33582/2 "2024-01-03T06:02:41Z")

</div>

Unfortunately, no GUI connector is available for qMRMLSegmentSelectorWidget yet. I’ve added an issue for this:

> <https://github.com/Slicer/Slicer/pull/7499>
>
> Adds support for : \`ctkCheckbox\`, \`ctkComboBox\`, \`ctkDoubleSlider\`, \`ctkDoubleSp…inBox\`, \`ctkDoubleRangeSlider\`
> 
> Depends on https://github.com/commontk/CTK/pull/1158  
> 
> Adds some of the widgets from #7308

There has been some progress recently in adding support for more widgets:

> <https://github.com/Slicer/Slicer/pull/7499>
>
> Adds support for : \`ctkCheckbox\`, \`ctkComboBox\`, \`ctkDoubleSlider\`, \`ctkDoubleSp…inBox\`, \`ctkDoubleRangeSlider\`
> 
> Depends on https://github.com/commontk/CTK/pull/1158  
> 
> Adds some of the widgets from #7308

qMRMLSegmentSelectorWidget is not included in this PR, but it gives you an example of how to write a GUI connector and you could consider implementing it and contributing it to Slicer core.

Without a GUI connector, you can still manually get/set values in the parameter node as it was done before in [earlier versions of the module template](https://github.com/Slicer/Slicer/blob/8d1ff646c59379c9f13e90b026bef1a942e8611f/Utilities/Templates/Modules/Scripted/TemplateKey.py) and how it is still done in some modules (such as [VectorToScalarVolume](https://github.com/Slicer/Slicer/blob/9f4b50f95afed0542e8b63a0827ec2167073a4cd/Modules/Scripted/VectorToScalarVolume/VectorToScalarVolume.py#L197-L281) module).
