GestureList¶
Attributes:
Methods:
- class Leap.GestureList¶
The GestureList class extends the Python array to represent a list of Gesture objects.
Get a GestureList object by calling Frame.gestures().
#All the gestures between two frames (inclusive) gesture_list = frame.gestures(last_frame_processed) #Only the gestures for the current frame gesture_list = frame.gestures()
New in version 1.0.
- classmethod GestureList()¶
Constructs an empty list.
New in version 1.0.
- is_empty¶
Type: boolean Reports whether the list is empty.
if not frame.gestures(last_frame_processed).is_empty: for gesture in frame.gestures(last_frame_processed): print "Type: " + str(gesture.type)
New in version 1.0.
- append(other)¶
Appends the members of the specifed GestureList to this GestureList.
Parameters: other (GestureList) – A GestureList object containing Gesture objects to append to the end of this GestureList. New in version 1.0.