Name generator classes properly

This commit is contained in:
Florian Festi 2016-07-31 14:15:06 +02:00
parent f8b4ef2162
commit 77ba187c70
8 changed files with 15 additions and 15 deletions

View File

@ -18,7 +18,7 @@ from boxes import *
from boxes.edges import Bolts
import inspect
class Box(Boxes):
class Box2(Boxes):
"""Box various options for different stypes and lids"""
def __init__(self):
@ -140,7 +140,7 @@ class Box(Boxes):
self.close()
def main():
b = Box()
b = Box2()
b.parseArgs()
b.render()

View File

@ -16,7 +16,7 @@
from boxes import *
class Box(Boxes):
class Box3(Boxes):
"""Box with just 3 walls"""
def __init__(self):
Boxes.__init__(self)
@ -53,7 +53,7 @@ class Box(Boxes):
self.close()
def main():
b = Box()
b = Box3()
b.parseArgs()
b.render()

View File

@ -16,7 +16,7 @@
from boxes import *
class Box(Boxes):
class DrillBox(Boxes):
"""Not yet parametrized box for drills from 1 to 12.5mm
in 0.5mm steps, 3 holes each size"""
def __init__(self):
@ -74,7 +74,7 @@ in 0.5mm steps, 3 holes each size"""
self.close()
def main():
b = Box()
b = DrillBox()
b.parseArgs()
b.render()

View File

@ -17,7 +17,7 @@
from boxes import *
import math
class FlexBox(Boxes):
class FlexBox2(Boxes):
"""Box with living hinge and top corners rounded"""
def __init__(self):
Boxes.__init__(self)
@ -99,7 +99,7 @@ class FlexBox(Boxes):
self.close()
def main():
b = FlexBox()
b = FlexBox2()
b.parseArgs()
b.render()

View File

@ -17,7 +17,7 @@
from boxes import *
import math
class FlexBox(Boxes):
class FlexBox3(Boxes):
"""Box with living hinge"""
def __init__(self):
Boxes.__init__(self)
@ -152,7 +152,7 @@ class FlexBox(Boxes):
self.close()
def main():
b = FlexBox() #100, 40, 100, r=20, h=10, thickness=4.0)
b = FlexBox3() #100, 40, 100, r=20, h=10, thickness=4.0)
b.parseArgs()
b.render()

View File

@ -17,7 +17,7 @@
from boxes import *
import math
class FlexBox(Boxes):
class FlexBox4(Boxes):
"""Box with living hinge and left corners rounded"""
def __init__(self):
Boxes.__init__(self)
@ -99,7 +99,7 @@ class FlexBox(Boxes):
self.close()
def main():
b = FlexBox()
b = FlexBox4()
b.parseArgs()
b.render()

View File

@ -16,7 +16,7 @@
from boxes import *
class FlexTest(Boxes):
class FlexTest2(Boxes):
"Piece for testing different flex settings"
def __init__(self):
Boxes.__init__(self)

View File

@ -16,7 +16,7 @@
from boxes import *
class Box(Boxes):
class MagazinFile(Boxes):
"""Open magazine file"""
def __init__(self):
Boxes.__init__(self)
@ -86,7 +86,7 @@ class Box(Boxes):
self.close()
def main():
b = Box()
b = MagazinFile()
b.parseArgs()
b.render()