I have been able to create a solid polygon on any layer using a DRAWSEGMENT and ds.SetShape(pcbnew.S_POLYGON) then calling ds.SetPolyPoints(wxpointlist).
This works very well. I then tried adding holes to the SHAPE_POLY_SET:
ds.GetPolyShape( ).AddHole( pcbnew.SHAPE_LINE_CHAIN( wxPointList) )
And I get the error “Wrong number or type of arguments”.
Anyone know how to create a DRAWSEGMENT S_POLYGON with holes in python?