HandList¶
Attributes:
Methods:
- class Leap.HandList¶
The HandList class extends the Python array to represent a list of Hand objects.
Get a HandList object by calling Frame.hands().
all_hands = frame.hands
New in version 1.0.
- classmethod HandList()¶
Constructs an empty list.
New in version 1.0.
- is_empty¶
Type: boolean Reports whether the list is empty.
if not frame.hands.is_empty: #Process hands... print str(hand)
New in version 1.0.
- frontmost¶
Type: Hand The item in this list with the smallest z coordinate.
front_hand = frame.hands.frontmost
New in version 1.0.
- append(other)¶
Appends the members of the specifed HandList to this HandList.
Parameters: other (HandList) – A HandList object containing Hand objects to append to the end of this HandList. New in version 1.0.