コード例 #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
ファイル: terra.py プロジェクト: Tambralinga/playground
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
ファイル: test.py プロジェクト: doevelopper/playground
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
ファイル: old_test.py プロジェクト: xthepoet/playground
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)