DeviceList¶
Attributes:
Methods:
- class Leap.DeviceList¶
The DeviceList class extends the Python array to represent a list of Device objects.
Get a DeviceList object by calling Controller.devices(). Currently, the list will only contain one device, no matter how many are attached to a computer.
New in version 1.0.
- classmethod DeviceList()¶
Constructs an empty list of devices.
New in version 1.0.
- is_empty¶
Type: boolean Reports whether the list is empty.
if not controller.devices.is_empty: device = controller.devices[0]
New in version 1.0.
- append(other)¶
Appends the members of the specifed DeviceList to this DeviceList.
Parameters: other (DeviceList) – A DeviceList object containing Device objects to append to the end of this DeviceList. New in version 1.0.