How to Get the Total Width, Height, X, and Y of All Shapes Selected in Python?

We can refer to all the shapes on the slide by
allShapes = srcPres.slides[0].shapes

is there a way to find out the total Width, Height, X & Y of the shapes selected? By that I don’t mean looping through each slide individually but when all the shapes are selected the Width, Height, X & Y of all shapes

Thank you

@bowespublishing,
Thank you for posting your question.

To find out the x, y, width, and height of the selected shapes, you need to iterate through all the shapes, compare their (left, top) coordinates, choosing the minimum, and compare their (right, bottom) coordinates, choosing the maximum. I hope this helps.