Add locked keyword argument to DocumentObject::addProperty

This commit is contained in:
Florian Foinant-Willig
2025-03-16 14:53:16 +01:00
committed by Kacper Donat
parent c16935dce4
commit d6958ea1e6
2 changed files with 11 additions and 11 deletions

View File

@@ -71,10 +71,11 @@ class DocumentObject(ExtensionContainer):
attr: int = 0,
read_only: bool = False,
hidden: bool = False,
locked: bool = False,
enum_vals: list = []
) -> "DocumentObject":
"""
addProperty(type: string, name: string, group="", doc="", attr=0, read_only=False, hidden=False, enum_vals=[]) -- Add a generic property.
addProperty(type: string, name: string, group="", doc="", attr=0, read_only=False, hidden=False, locked = False, enum_vals=[]) -- Add a generic property.
"""
...