diff options
author | Russell Cohen <rcoh@mit.edu> | 2010-11-24 01:09:12 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2010-11-24 01:09:12 -0500 |
commit | b042647b68abdc82490ca6e059993b8eba28904c (patch) | |
tree | a9ee95a38e98b377c251b7b2e9af9cbd8056cf7c /layouts/LineLayout.py | |
parent | 407ac922fc4178021cf3a16dfb1bd875b6083ac4 (diff) |
Refactoring complete! Made modules/packages as appropriate. Finally.
Diffstat (limited to 'layouts/LineLayout.py')
-rw-r--r-- | layouts/LineLayout.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/LineLayout.py b/layouts/LineLayout.py new file mode 100644 index 0000000..3a8b747 --- /dev/null +++ b/layouts/LineLayout.py @@ -0,0 +1,5 @@ +from operationscore.LayoutEngine import * +#Simple layout class that simply makes a line of LEDs +class LineLayout(LayoutEngine): + def layoutFunc(self, lastLocation): + return (lastLocation[0]+self.argDict['spacing'], lastLocation[1]) |