I use python 2.7 with python pptx,
I need to build a general function to center objects in my slide.
I know how to center any individual object type (textbox, table, image etc.) and need to build a function to tell which type of object is a given object and allign it properley.
I need something similar to:
if foo is bar
condition.
I found the table general object here enter link description here and used the following code:
if table is pptx.shapes.graphfrm.GraphicFrame.table:
print "what"
It does not work,
How can i check if an object is some type of pptx object
Thanks!