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

Method new

src/docx/oxml/shared.py:21–24  ·  view source on GitHub ↗

Return a new ``CT_DecimalNumber`` element having tagname `nsptagname` and ``val`` attribute set to `val`.

(cls, nsptagname: str, val: int)

Source from the content-addressed store, hash-verified

19
20 @classmethod
21 def new(cls, nsptagname: str, val: int):
22 """Return a new ``CT_DecimalNumber`` element having tagname `nsptagname` and
23 ``val`` attribute set to `val`."""
24 return OxmlElement(nsptagname, attrs={qn("w:val"): str(val)})
25
26
27class CT_OnOff(BaseOxmlElement):

Callers

nothing calls this directly

Calls 2

OxmlElementFunction · 0.90
qnFunction · 0.90

Tested by

no test coverage detected