Python-pptx - Text parameters (font, size, position) on Autoshape
问题 How can I set font, size of text for the shape ? One Object instead two seperate ones (shape and Text, how use run for the shape) Just do not get how to set the parameters on Textframe instance of the Autoshape-object. from pptx import Presentation from pptx.enum.shapes import MSO_SHAPE from pptx.enum.dml import MSO_THEME_COLOR from pptx.enum.text import MSO_ANCHOR, MSO_AUTO_SIZE from pptx.util import Inches, Pt prs = Presentation('Input.pptx') slide_layout = prs.slide_layouts[2] slide = prs