School/.venv/lib/python3.9/site-packages/openpyxl/workbook/function_group.py
Kristofers Solo fc125db0e7 Updated .venv
2021-11-22 17:12:51 +02:00

37 lines
803 B
Python

# Copyright (c) 2010-2021 openpyxl
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Sequence,
String,
Integer,
)
class FunctionGroup(Serialisable):
tagname = "functionGroup"
name = String()
def __init__(self,
name=None,
):
self.name = name
class FunctionGroupList(Serialisable):
tagname = "functionGroups"
builtInGroupCount = Integer(allow_none=True)
functionGroup = Sequence(expected_type=FunctionGroup, allow_none=True)
__elements__ = ('functionGroup',)
def __init__(self,
builtInGroupCount=16,
functionGroup=(),
):
self.builtInGroupCount = builtInGroupCount
self.functionGroup = functionGroup