From 0e84161f76fb822ed2424caa354c5acb82ea7a7a Mon Sep 17 00:00:00 2001 From: erick Date: Sat, 24 Oct 2009 20:32:16 +0000 Subject: Added comment on TArrayOneTypeProperty for append and delete operations --- (limited to 'tutorius/properties.py') 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 with a one type array + property do the following: + + Append: t.array = t.array + (e,) # the comma is mandatory in case is also a tuple + Delete: t.array = t.array[:i] + t.array[i+1:] # where is the element to delete """ def __init__(self, value, tutoProp): TutoriusProperty.__init__(self) -- cgit v0.9.1