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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user