App: define an enum to be used as the retType argument of DocumentObject.getSubObject()

This is to avoid to use magic numbers in client code
This commit is contained in:
wmayer
2023-02-14 11:12:19 +01:00
committed by wwmayer
parent ae00eec442
commit 212bbc7fa0

View File

@@ -947,6 +947,17 @@ class PropertyType(IntEnum):
App.PropertyType = PropertyType
class ReturnType(IntEnum):
PyObject = 0
DocObject = 1
DocAndPyObject = 2
Placement = 3
Matrix = 4
LinkAndPlacement = 5
LinkAndMatrix = 6
App.ReturnType = ReturnType
# clean up namespace
del(InitApplications)
del(test_ascii)