# Python Code for User to Select Point on Image

**URL:** <https://discourse.slicer.org/t/python-code-for-user-to-select-point-on-image/12221>\
**Category:** Support\
**Tags:** segmentation, dicom, python\
**Created:** [June 25, 2020, 8:30pm UTC](https://discourse.slicer.org/t/python-code-for-user-to-select-point-on-image/12221 "2020-06-25T20:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vertebrae](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@vertebrae](https://discourse.slicer.org/u/vertebrae)\
**Post date:** [June 25, 2020, 8:30pm UTC](https://discourse.slicer.org/t/python-code-for-user-to-select-point-on-image/12221/1 "2020-06-25T20:30:00Z")

</div>

I am using Python to code a program and part of the program involves the user selecting a point on a CT scan. How can I code this user input?

---

<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 26, 2020, 2:25am UTC](https://discourse.slicer.org/t/python-code-for-user-to-select-point-on-image/12221/2 "2020-06-26T02:25:54Z")

</div>

You can find examples in the script repository, for example here: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Switching\_to\_markup\_fiducial\_placement\_mode](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Switching_to_markup_fiducial_placement_mode)
