openpyxl.styles.protection 源代码

from __future__ import absolute_import
# Copyright (c) 2010-2019 openpyxl

from openpyxl.descriptors import Bool
from openpyxl.descriptors.serialisable import Serialisable


[文档]class Protection(Serialisable): """Protection options for use in styles.""" tagname = "protection" locked = Bool() hidden = Bool() def __init__(self, locked=True, hidden=False): self.locked = locked self.hidden = hidden