6 Jan
2013
6 Jan
'13
10:34 a.m.
+RPSTE_LIST = ["%s" % x for x in range(1, 11, 1)]
Look at you, getting all fancy! :)
Note that a step of 1 is the default, so you don't need to explicitly provide it as the third argument (although it doesn't hurt anything of course).
+RPSTE_LIST.insert(0, "OFF") +STEDELAY_LIST = ["%s ms" % x for x in range(100, 1100, 100)] +STEDELAY_LIST.insert(0, "OFF")
Note that you could make this kind of thing a little more integrated by doing this:
STEDELAY_LIST = ["Off"] + ["%s ms" % x for x in range(100, 1100, 100)]
But it's fine as-is of course.
Applied, thanks Jim!
--
Dan Smith
www.danplanet.com
KK7DS