Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/p/y/python-docx-0.5.1/docx/parts/styles.py   python-docx(Download)
 
from ..opc.package import Part
from ..oxml.shared import oxml_fromstring
from ..shared import lazyproperty
 
        package.
        """
        styles_elm = oxml_fromstring(blob)
        styles_part = cls(partname, content_type, styles_elm, package)
        return styles_part

src/p/y/python-docx-0.5.1/docx/parts/numbering.py   python-docx(Download)
 
from ..opc.package import Part
from ..oxml.shared import oxml_fromstring
from ..shared import lazyproperty
 
        a WML package.
        """
        numbering_elm = oxml_fromstring(blob)
        numbering_part = cls(partname, content_type, numbering_elm, package)
        return numbering_part

src/p/y/python-docx-0.5.1/docx/parts/document.py   python-docx(Download)
from ..opc.oxml import serialize_part_xml
from ..opc.package import Part
from ..oxml.shared import nsmap, oxml_fromstring
from ..shape import InlineShape
from ..shared import lazyproperty, Parented
    def load(cls, partname, content_type, blob, package):
        document_elm = oxml_fromstring(blob)
        document_part = cls(partname, content_type, document_elm, package)
        return document_part