From 4932447df9c1e2a8198124c30284f954101f715d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 28 Mar 2011 15:37:47 -0400 Subject: [PATCH] add Horizontal and Vertical constraint classes --- Horizontal.py | 6 ++++++ Vertical.py | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 Horizontal.py create mode 100644 Vertical.py diff --git a/Horizontal.py b/Horizontal.py new file mode 100644 index 0000000..4bd47f5 --- /dev/null +++ b/Horizontal.py @@ -0,0 +1,6 @@ + +from Constraint import Constraint + +class Horizontal(Constraint): + def __init__(self, shape): + self.shape = shape diff --git a/Vertical.py b/Vertical.py new file mode 100644 index 0000000..42a1d65 --- /dev/null +++ b/Vertical.py @@ -0,0 +1,6 @@ + +from Constraint import Constraint + +class Vertical(Constraint): + def __init__(self, shape): + self.shape = shape