PPTX design into UI design?

Maybe crazy idea, but fallen in to my mind that would it be possible to convert interactive animated pptx slide into python code that would be reusable as part of UI code? Really nuts idea, that PPTX file not an exact UI designer… but several times seen python code manipulations on PPTX? But could it be possible? THX

It would be hard work and there are better ways to take an idea and implement as a UI in python.