Enable "Edit in 3D View" Via qMRMLSegmentEditorWidget

Hi I’m new to slicer development and I wanted to update my code to the 4.10 version. I just had a question of how to enable the “edit in 3D view” section using the qMRMLSegmentEditorWidget?

Thanks

I got to this point:
self.segmentEditorWidget.setActiveEffectByName(“Erase”)
effect = self.segmentEditorWidget.activeEffect()
effect.setParameter(“Editin3DViews”,“1”)
effect.self().onApply()
But whenever I attempt to erase, it will only rotate/displace the volume.