Python Code for User to Select Point on Image

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?

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