Hello
this code can not execute the second and third conditions><. Also, if I delete the break it executes all conditions even if it is false !!!
please please I need help in the fastest time.
for gesture in frame.gestures():
if gesture.type is Leap.Gesture.TYPE_KEY_TAP:
key_tap = Leap.KeyTapGesture(gesture)
print "key_tap : " + str(key_tap) +"---"+"gesture.type : " + str(gesture.type)
for hand in frame.hands:
handType= 'left Hand' if hand.is_left else "Rigth Hand "
for finger in hand.fingers:
# if self.finger_names[0]:
# print "b"
if self.finger_names[finger.type] == "Index" :
print "finger.type :Index :" + str(finger.type)
break
elif self.finger_names[finger.type] == "Middle" :
print "finger.type : Middle: " + str(finger.type)
break
elif self.finger_names[finger.type] == "Ring" :
print "d"
break