https://bitbucket.org/hudson/magic-lantern
Revision 488e483d16f2f28f7f80cc1ffcffe63fe656bd4d authored by a1ex on 03 June 2011, 22:01:47 UTC, committed by a1ex on 03 June 2011, 22:01:47 UTC
1 parent 8fc97f6
Raw File
Tip revision: 488e483d16f2f28f7f80cc1ffcffe63fe656bd4d authored by a1ex on 03 June 2011, 22:01:47 UTC
Swap MENU <-> ERASE (experimental)
Tip revision: 488e483
test.py
# Testing the pymite interpreter dynamic loading
collection = {
	'first'		: "hello",
	'second'	: "world",
	'third'		: "from",
}

def run_test():
	y = 30
	x = 10
	#collection['fourth'] = 'pymite'
	#collection['fifth'] = 'user script!'

	#for k,v in collection.iteritems():
	for k in collection.keys():
		new_item = "X=" + `x` + ": " + collection[k]
		#main.bmp_puts( x, y, new_item )
		print new_item
		y += 32
		x += 28 * 2

#run_test()

import main;

main.bmp_fill( 3, 0, 30, 720, 300 )

run_test()
back to top