How, through python, to reach or open Segmentation-Geometry-Widget dialog or set up parameters before opening a dialog?

Operating system:
Slicer version:
Expected behavior:
Actual behavior:

Hi all,
how to open Segmentation-Geometry-Widget dialog inside the segment-editor? how to setup parameters? through python.

I try this:
geometryWidget = slicer.qMRMLSegmentationGeometryWidget()
segmentationNode = getNode(‘Segmentation’)
geometryWidget.setSegmentationNode(segmentEditorNode)
geometryWidget.show()

This one seems not associated with my current segment-editor.

From the segment-editor to open the dialog, which looks like this:

Thanks a lot

Sorry for the slow response. I guess you’ve figured out that the problem was the typo in your code (you passed the segment editor node to the widget instead of the segmentation node). This works well for me:

geometryWidget = slicer.qMRMLSegmentationGeometryWidget()
segmentationNode = getNode('Segmentation')
geometryWidget.setSegmentationNode(segmentationNode)
geometryWidget.show()