Fiducial Markups cursor

Hello,

I was wondering if there is a way to within the python script for a scripted loadable module, change the cursor appearance for the markups fiducial placement. Specifically I would like to change it from the circle with the arrow to a cross hair. Any help is appreciated.

Thanks!

If you want to initiate fiducial placement from your module GUI then you can use qSlicerMarkupsPlaceWidget. See an example in Markups module documentation.

The appearance of the fiducial marker is controlled via the display node associated with the fiducial list node. If you look at the information for developers here:
https://www.slicer.org/wiki/Documentation/4.8/Modules/Markups
you can get the fiducial list and then:

dispNode = fidNode.GetDisplayNode()
dispNode.SetGlyphTypeFromString(‘Cross2D’)