From 8971002422344b225a970d7f653616b1ed6c11aa Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 15 Mar 2014 13:26:30 +0100 Subject: [PATCH] typetray.py: Adjust canvas and default output --- typetray.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/typetray.py b/typetray.py index 1d67353..30acf25 100755 --- a/typetray.py +++ b/typetray.py @@ -42,7 +42,7 @@ class TypeTray(Boxes): def __init__(self, x, y, h, hi=None, **kw): self.x, self.y, self.h = x, y, h self.hi = hi or h - Boxes.__init__(self, width=sum(x)+sum(y)+70, height=sum(y)+8*h+50, **kw) + Boxes.__init__(self, width=sum(x)+sum(y)+70, height=sum(y)+1*h+50, **kw) def xSlots(self): posx = -0.5 * self.thickness @@ -123,17 +123,17 @@ class TypeTray(Boxes): self.surface.flush() self.surface.finish() -x = 260 +x = 260 # outer width nx = 3 -y = 300 +y = 300 # outer depth ny = 4 thickness=4.0 dx = (x-thickness)/nx-thickness dy = (y-thickness)/ny-thickness sx = [dx] * nx -#sy = [dy] * ny -sy = [120, 300-3*thickness-120] +sy = [dy] * ny +#sy = [120, 300-3*thickness-120] b = TypeTray(sx, sy, 78-thickness, 40, thickness=thickness, burn=0.1) b.edges["f"].settings.setValues(b.thickness, space=3, finger=3,