# SimpleMarkupsWidget in custom python module not calling updateParameterNodeFromGUI()

**URL:** https://discourse.slicer.org/t/simplemarkupswidget-in-custom-python-module-not-calling-updateparameternodefromgui/24055
**Category:** Development
**Tags:** markups
**Created:** [June 26, 2022, 10:47pm UTC](https://discourse.slicer.org/t/simplemarkupswidget-in-custom-python-module-not-calling-updateparameternodefromgui/24055 "2022-06-26T22:47:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [June 26, 2022, 10:47pm UTC](https://discourse.slicer.org/t/simplemarkupswidget-in-custom-python-module-not-calling-updateparameternodefromgui/24055/1 "2022-06-26T22:47:54Z")

</div>

In my Python Scripted Module I have an instance of a _SimpleMarkupsWidget_.

When I change the selected Point List (as depicted in the screenshot below) `updateParameterNodeFromGUI()` is not called:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/e/ced195d285b6cb03dbd683d0b64292cbb7cb1651.jpeg)

I already read in [Slicer Scripted Module not calling updateParameterNodeFromGUI when UI is updated](https://discourse.slicer.org/t/slicer-scripted-module-not-calling-updateparameternodefromgui-when-ui-is-updated/20122) that I have _“connect each GUI element with the callback to updateParameterNodeFromGUI”_, so I added this to `setup()`:

```auto
self.ui.SimpleMarkupsWidget.connect("currentNodeChanged(vtkMRMLNode*)", self.updateParameterNodeFromGUI)

```

but this did not solve the problem.  
  
What am I missing? Does changing the Point List not trigger `currentNodeChanged()`?

---

<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: [June 28, 2022, 3:15am UTC](https://discourse.slicer.org/t/simplemarkupswidget-in-custom-python-module-not-calling-updateparameternodefromgui/24055/2 "2022-06-28T03:15:54Z")

</div>

`qSlicerSimpleMarkupsWidget` is not related to parameter nodes, so I’m not sure what `updateParameterNodeFromGUI` signal you expect it to emit. You can find what signals this widget emits in its [documentation](http://apidocs.slicer.org/master/classqSlicerSimpleMarkupsWidget.html#Signals).

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [July 1, 2022, 10:09pm UTC](https://discourse.slicer.org/t/simplemarkupswidget-in-custom-python-module-not-calling-updateparameternodefromgui/24055/3 "2022-07-01T22:09:32Z")

</div>

Thanks! I wanted to get the currently selected node, I managed to do this by connecting `markupsFiducialNodeChanged` (which I found in the documentation you linked) like so:

```auto
self.ui.SimpleMarkupsWidget.connect("markupsFiducialNodeChanged()", self.foo)

```
