Remove DemoBox from boxes.__init__.py

This commit is contained in:
Florian Festi 2016-07-31 13:08:34 +02:00
parent 776b0a2c27
commit f8b4ef2162
1 changed files with 0 additions and 39 deletions

View File

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