Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/openpyxl/styles/protection.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# Copyright (c) 2010-2020 openpyxl
3from openpyxl.descriptors import Bool
4from openpyxl.descriptors.serialisable import Serialisable
7class Protection(Serialisable):
8 """Protection options for use in styles."""
10 tagname = "protection"
12 locked = Bool()
13 hidden = Bool()
15 def __init__(self, locked=True, hidden=False):
16 self.locked = locked
17 self.hidden = hidden