From f8b4ef216218c1a254985d07d81fb049388d6988 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 31 Jul 2016 13:08:34 +0200 Subject: [PATCH] Remove DemoBox from boxes.__init__.py --- boxes/__init__.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index c9e3648..0e30fbf 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1173,42 +1173,3 @@ class Boxes: self.ctx.stroke() self.move(overallwidth, overallheight, move) - - - ################################################## - ### main - ################################################## - -class DemoBox(Boxes): - """A simple fully enclosed box showcasing different finger joints""" - def __init__(self): - Boxes.__init__(self) - self.buildArgParser("x", "y", "h") - - def render(self): - """ """ - x, y, h, t = self.x, self.y, self.h, self.thickness - self.open() - self.ctx.save() - - self.moveTo(t, t) - self.rectangularWall(x, y, "ffff") - self.moveTo(x+4*t, 0) - self.rectangularWall(x, y, "FFFF") - - self.ctx.restore() - - self.moveTo(t, y+4*t) - for i in range(2): - for l in (x, y): - self.rectangularWall(l, h, "hffF") - self.moveTo(l+4*t, 0) - self.moveTo(-x-y-8*t, h+4*t) - - - self.close() - -if __name__ == '__main__': - b = DemoBox() - b.parseArgs() - b.render()