Fix callback param in castle.py

This commit is contained in:
Florian Festi 2013-07-20 19:24:16 +02:00
parent ba53710a3b
commit 1918c0b051
1 changed files with 2 additions and 2 deletions

View File

@ -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")