Doc strings and text for web interface
This commit is contained in:
parent
0a4c90e113
commit
5dabd9991d
10
bserver.py
10
bserver.py
|
@ -76,7 +76,15 @@ class BServer:
|
|||
result = ["""<html>
|
||||
<head><title>Boxes for Laser Cutters</title></head>
|
||||
<body>
|
||||
Text
|
||||
<h1>boxes.py</h1>
|
||||
<p>
|
||||
A Python based generator for laser cut boxes and other things.
|
||||
</p>
|
||||
<p>It features both finished parametrized generators as well as a Python API
|
||||
for writing your own scripts. It features finger and (flat) dovetail joints,
|
||||
flex cuts, holes and slots for screws and more high level functions.
|
||||
</p>
|
||||
<p>These are the available generators:</p>
|
||||
<ul>
|
||||
""" ]
|
||||
for name in sorted(self.boxes):
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
from boxes import *
|
||||
|
||||
class Box(Boxes):
|
||||
"""Not yet parametrized box for drills from 1 to 12.5mm
|
||||
in 0.5mm steps, 3 holes each size"""
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
self.x, self.y, self.h = 120, 240, 60
|
||||
|
|
|
@ -18,6 +18,7 @@ from boxes import *
|
|||
import math
|
||||
|
||||
class Folder(Boxes):
|
||||
"""Book cover with flex for the spine"""
|
||||
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
from boxes import *
|
||||
|
||||
class Box(Boxes):
|
||||
"""Open magazine file"""
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
self.buildArgParser("x", "y", "h", "hi")
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
from boxes import Boxes
|
||||
|
||||
class Silverware(Boxes):
|
||||
"""Not yet parametrized cuttlery stand with carrying grip
|
||||
using flex for rounded corners"""
|
||||
|
||||
####################################################################
|
||||
### Parts
|
||||
####################################################################
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
from boxes import *
|
||||
|
||||
class TrayInsert(Boxes):
|
||||
"""Tray insert without floor and outer walls - allows only continuous walls"""
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
self.buildArgParser("sx", "sy", "h")
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
from boxes import *
|
||||
|
||||
class TypeTray(Boxes):
|
||||
"""Type tray - allows only continuous walls"""
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
self.buildArgParser("sx", "sy", "h", "hi")
|
||||
|
|
Loading…
Reference in New Issue