From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- html/SmootLight.layouts.SpecifiedLayout-pysrc.html | 133 +++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 html/SmootLight.layouts.SpecifiedLayout-pysrc.html (limited to 'html/SmootLight.layouts.SpecifiedLayout-pysrc.html') diff --git a/html/SmootLight.layouts.SpecifiedLayout-pysrc.html b/html/SmootLight.layouts.SpecifiedLayout-pysrc.html new file mode 100644 index 0000000..58e1418 --- /dev/null +++ b/html/SmootLight.layouts.SpecifiedLayout-pysrc.html @@ -0,0 +1,133 @@ + + + + + SmootLight.layouts.SpecifiedLayout + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package layouts :: + Module SpecifiedLayout + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.layouts.SpecifiedLayout

+
+ 1  from operationscore.PixelAssembler import * 
+
2 -class SpecifiedLayout(PixelAssembler): +
3 """SpecifiedLayout is a class that allows precise specification of each individual LED. + 4 Configure with a <Locations> tag in the args dict as follows': + 5 <Args> + 6 <Locations> + 7 <Loc>(1,1)</Loc> + 8 <Loc>(50,50)</Loc> + 9 </Locations> +10 etc. +11 </Args> +12 You may put attributes on the Locs so that you don't get confused. +13 """ +14 +
15 - def initLayout(self): +
16 self.lightNum = -1 +
17 +
18 - def layoutFunc(self, lastLocation): +
19 self.lightNum += 1 +20 return self['Locations'][self.lightNum] +
21 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3