I have a shape and can change the shape to use a gradient fill. If it since before have more gradient stops than the default two, I can parse them, change them, and remove them. However, I cannot find how to add an additional gradient stop. Which is what I want. The documentation quite correctly states three Gradient Stops to be a common need.
I have found the "gradient_stops._gsLst", but do not know the correct way to add a new gradient stop.
I have tried to use the gradient_stops.append() which gives me a clear hint on what is expected (an lxml.etree._Element). But I cannot find anything describing the correct way to create such an Element. I expect the solution could be to provide the "some new GradientStop Element" mentioned below:
shape.fill.gradient_stops._gsLst.append("some new GradientStop Element")
Trying to take a copy of one of the existing Gradient Stop elements feel like too much experimenting...