예제 #1
0
def slide(kid_dictionary, a):
    while True:
        for key in sorted(kid_dictionary.iterkeys()):
            if kid_dictionary[key] != 0:
                ablib.export(kid_dictionary[key])
                ablib.direction(kid_dictionary[key], "out")
                ablib.set_value(kid_dictionary[key], 0)

        for key in sorted(kid_dictionary.iterkeys()):
            if kid_dictionary[key] != 0:
                ablib.set_value(kid_dictionary[key], 1)
                time.sleep(0.1)
                ablib.set_value(kid_dictionary[key], 0)
                time.sleep(0.01)
예제 #2
0
def slide(kid_dictionary,a):
	while True:
		for key in sorted(kid_dictionary.iterkeys()):
			if kid_dictionary[key]!=0:
				ablib.export(kid_dictionary[key])
				ablib.direction(kid_dictionary[key],"out")
				ablib.set_value(kid_dictionary[key],0)

		for key in sorted(kid_dictionary.iterkeys()):
			if kid_dictionary[key]!=0:
				ablib.set_value(kid_dictionary[key],1)
				time.sleep(0.1)
				ablib.set_value(kid_dictionary[key],0)
				time.sleep(0.01)
예제 #3
0
def slide(kid_dictionary):
	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			print "%s: %s" % (key,kid_dictionary[key])
			ablib.export(kid_dictionary[key])
			ablib.direction(kid_dictionary[key],"out")
			ablib.set_value(kid_dictionary[key],0)

	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			ablib.set_value(kid_dictionary[key],1)
			time.sleep(0.2)

	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			ablib.set_value(kid_dictionary[key],0)
			time.sleep(0.2)
예제 #4
0
def slide(kid_dictionary):
	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			print "%s: %s" % (key,kid_dictionary[key])
			ablib.export(kid_dictionary[key])
			ablib.direction(kid_dictionary[key],"out")
			ablib.set_value(kid_dictionary[key],0)

	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			ablib.set_value(kid_dictionary[key],1)
			time.sleep(0.2)

	for key in sorted(kid_dictionary.iterkeys()):
		if kid_dictionary[key]!=0:
			ablib.set_value(kid_dictionary[key],0)
			time.sleep(0.2)