# Ctkslider connect to parameter node to GUI

**URL:** https://discourse.slicer.org/t/ctkslider-connect-to-parameter-node-to-gui/36830
**Category:** Support
**Created:** [June 17, 2024, 8:14am UTC](https://discourse.slicer.org/t/ctkslider-connect-to-parameter-node-to-gui/36830 "2024-06-17T08:14:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)
#### Post date: [June 17, 2024, 8:14am UTC](https://discourse.slicer.org/t/ctkslider-connect-to-parameter-node-to-gui/36830/1 "2024-06-17T08:14:14Z")

</div>

Hi all,

I would like to connect ctksliderwidget to GUI using the parameter node.  
Could you find the error in my codes?

```auto
@parameterPack
class SliderRange:
    Minimum: float
    Maximum: float
    Value: float

@parameterNodeWrapper
class ModulesParameterNode:

    # GUIs
    frameSliderValue: SliderRange
    thicknessSliderValue: SliderRange  
    

self.mapping = {
    "frameSliderValue": self.widget.frameSlider,
    "thicknessSliderValue": self.widget.projectionSlider,
}

self._parameterNodeGuiTag = self._parameterNode.connectParametersToGui(self.mapping)

```

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [June 19, 2024, 5:25pm UTC](https://discourse.slicer.org/t/ctkslider-connect-to-parameter-node-to-gui/36830/2 "2024-06-19T17:25:29Z")

</div>

It could help if you provided this in the form of a complete example that can easily be tested. I.e. the minimum reproducible example that illustrates the question. (At least I think that would help - I haven’t use the parameter nodes so I don’t know the answer myself).
