scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.28k stars 503 forks source link

Validate add_movie parameters #847

Open MaartenUreel opened 1 year ago

MaartenUreel commented 1 year ago

After searching for a long time I discovered that my add_movie didn't work because I specified numbers instead of Inch, Cm, Mm objects.

I feel this should be noted in the documentation and that the library should also throw an exception if you provide normal numbers.