MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _pic_xml

Method _pic_xml

src/docx/oxml/shape.py:158–179  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

156
157 @classmethod
158 def _pic_xml(cls):
159 return (
160 "<pic:pic %s>\n"
161 " <pic:nvPicPr>\n"
162 ' <pic:cNvPr id="666" name="unnamed"/>\n'
163 " <pic:cNvPicPr/>\n"
164 " </pic:nvPicPr>\n"
165 " <pic:blipFill>\n"
166 " <a:blip/>\n"
167 " <a:stretch>\n"
168 " <a:fillRect/>\n"
169 " </a:stretch>\n"
170 " </pic:blipFill>\n"
171 " <pic:spPr>\n"
172 " <a:xfrm>\n"
173 ' <a:off x="0" y="0"/>\n'
174 ' <a:ext cx="914400" cy="914400"/>\n'
175 " </a:xfrm>\n"
176 ' <a:prstGeom prst="rect"/>\n'
177 " </pic:spPr>\n"
178 "</pic:pic>" % nsdecls("pic", "a", "r")
179 )
180
181
182class CT_PictureNonVisual(BaseOxmlElement):

Callers 1

newMethod · 0.80

Calls 1

nsdeclsFunction · 0.90

Tested by

no test coverage detected