You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
394 B
18 lines
394 B
# Copyright (c) 2010-2024 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
|