From 1918c0b0515908df181579b5a279443608cf5c7c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 20 Jul 2013 19:24:16 +0200 Subject: [PATCH] Fix callback param in castle.py --- castle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/castle.py b/castle.py index 00a4787..57f0741 100755 --- a/castle.py +++ b/castle.py @@ -17,10 +17,10 @@ class Castle(Boxes): def render(self, t_x=70, t_h=250, w1_x=300, w1_h=120, w2_x=100, w2_h=120): self.moveTo(0,0) - self.rectangularWall(t_x, t_h, edges="efPf", move="right", callbacks= + self.rectangularWall(t_x, t_h, edges="efPf", move="right", callback= [lambda: self.fingerHolesAt(t_x*0.5, 0, w1_h, 90),]) self.rectangularWall(t_x, t_h, edges="efPf", move="right") - self.rectangularWall(t_x, t_h, edges="eFPF", move="right", callbacks= + self.rectangularWall(t_x, t_h, edges="eFPF", move="right", callback= [lambda: self.fingerHolesAt(t_x*0.5, 0, w2_h, 90),]) self.rectangularWall(t_x, t_h, edges="eFPF", move="right")