Open Ozymansour opened 4 days ago
The "little-yellow-box" things are adjustments. The documentation talks about those here: https://python-pptx.readthedocs.io/en/latest/user/autoshapes.html#adjusting-an-autoshape
The "little-yellow-box" things are adjustments. The documentation talks about those here: https://python-pptx.readthedocs.io/en/latest/user/autoshapes.html#adjusting-an-autoshape
Is a connector an auto-shape? After adding adjs = connector.adjustments
to the function above, I keep getting this error:
AttributeError: 'Connector' object has no attribute 'adjustments'
Ah, yes, apologies, you're quite right. A connector is a cxnSp
element, not an sp
element and so doesn't have that attribute.
I believe that attribute could be implemented on Connector
but hasn't been yet.
The following code creates a connector starting at the top right of a table and ending at a country on a map:
This is the current output:
My issue is that the elbow connector always goes down first and then right, instead of just simply going down like so:
This means i'm forced to manually drag that yellow adjustment box in the middle (to the right in this case) to get the desired look. Unfortunately this is quite tiresome when I have many connectors on a deck of slides.
Is there any way to get the connector to display like above instead of it taking many twists and turns?