openpyxl.worksheet.custom 源代码

#Autogenerated schema
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
    String,
    Sequence,
)

# can be done with a nested sequence


[文档]class CustomProperty(Serialisable): tagname = "customProperty" name = String() def __init__(self, name=None, ): self.name = name
[文档]class CustomProperties(Serialisable): tagname = "customProperties" customPr = Sequence(expected_type=CustomProperty) __elements__ = ('customPr',) def __init__(self, customPr=(), ): self.customPr = customPr