Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tutorius/properties.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tutorius/properties.py b/tutorius/properties.py
index 137e756..3af728b 100644
--- a/tutorius/properties.py
+++ b/tutorius/properties.py
@@ -344,7 +344,13 @@ class TPositionProperty(TutoriusProperty):######################################
class TArrayOneTypeProperty(TutoriusProperty):######################################################
"""
- Represents an array list of Tutorius_properties. All the elements in the list must have the same type. The list must not be empty
+ Represents an array list of Tutorius_properties. All the elements in the list must have the same type. The list must not be empty.
+
+ For common operations on a generic TPropContainer <t> with a one type array <array>
+ property do the following:
+
+ Append: t.array = t.array + (e,) # the comma is mandatory in case <e> is also a tuple
+ Delete: t.array = t.array[:i] + t.array[i+1:] # where <i> is the element to delete
"""
def __init__(self, value, tutoProp):
TutoriusProperty.__init__(self)