# Display a ClosedCurveNode with changing parameters after a button press event

**URL:** <https://discourse.slicer.org/t/display-a-closedcurvenode-with-changing-parameters-after-a-button-press-event/20289>\
**Category:** Support\
**Created:** [October 21, 2021, 6:36pm UTC](https://discourse.slicer.org/t/display-a-closedcurvenode-with-changing-parameters-after-a-button-press-event/20289 "2021-10-21T18:36:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helenawill95](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/helenawill95/32/2650_2.png) [@helenawill95](https://discourse.slicer.org/u/helenawill95)\
**Post date:** [October 21, 2021, 6:36pm UTC](https://discourse.slicer.org/t/display-a-closedcurvenode-with-changing-parameters-after-a-button-press-event/20289/1 "2021-10-21T18:36:13Z")

</div>

I am creating a module where i would like to display a closed curve after an event. The closed curve will change after each event (button / addition of fiducial point) dependent on the new coordinates defined.

How can I create the closed curve node and display it with a set of changing coordinates in a module, I am able to do this manually via python interactor but struggling to import this into my module?

Thanks in advance

---

<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:** [October 22, 2021, 6:27pm UTC](https://discourse.slicer.org/t/display-a-closedcurvenode-with-changing-parameters-after-a-button-press-event/20289/2 "2021-10-22T18:27:13Z")

</div>

Do you use markups closed curve or you are observing a markups fiducial list and update the curve whenever the points are moved?

---

<div class="post-metadata">

**Author:** ![helenawill95](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/helenawill95/32/2650_2.png) [@helenawill95](https://discourse.slicer.org/u/helenawill95)\
**Post date:** [October 26, 2021, 1:04pm UTC](https://discourse.slicer.org/t/display-a-closedcurvenode-with-changing-parameters-after-a-button-press-event/20289/3 "2021-10-26T13:04:05Z")

</div>

I am using a markups closed curve, but have it working now thank you 🙂 I just need to include observer events to ensure the curve is deleted when deleted manually on Slicer GUI.
