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

Method default

src/docx/parts/settings.py:29–34  ·  view source on GitHub ↗

Return a newly created settings part, containing a default `w:settings` element tree.

(cls, package: Package)

Source from the content-addressed store, hash-verified

27
28 @classmethod
29 def default(cls, package: Package):
30 """Return a newly created settings part, containing a default `w:settings` element tree."""
31 partname = PackURI("/word/settings.xml")
32 content_type = CT.WML_SETTINGS
33 element = cast("CT_Settings", parse_xml(cls._default_settings_xml()))
34 return cls(partname, content_type, element, package)
35
36 @property
37 def settings(self) -> Settings:

Callers

nothing calls this directly

Calls 3

PackURIClass · 0.90
parse_xmlFunction · 0.90
_default_settings_xmlMethod · 0.80

Tested by

no test coverage detected