Knobs: Improve param descriptions

This commit is contained in:
Florian Festi 2017-10-01 21:13:29 +02:00
parent 696307397d
commit dd2cedeb57
2 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@
from boxes import *
class ConcaveKnob(Boxes):
"""Round knob serraded outside for better gripping"""
"""Round knob serrated outside for better gripping"""
ui_group = "Part"
@ -27,7 +27,7 @@ class ConcaveKnob(Boxes):
# Add non default cli params if needed (see argparse std lib)
self.argparser.add_argument(
"--diameter", action="store", type=float, default=50.,
help="Diameter of the knob")
help="Diameter of the knob (mm)")
self.argparser.add_argument(
"--serrations", action="store", type=int, default=3,
help="Number of serrations")
@ -39,10 +39,10 @@ class ConcaveKnob(Boxes):
help="Angle between convex and concave parts")
self.argparser.add_argument(
"--bolthole", action="store", type=float, default=6.,
help="Diameter of the bolt hole")
help="Diameter of the bolt hole (mm)")
self.argparser.add_argument(
"--hexhead", action="store", type=float, default=10.,
help="Width of the hex bolt head")
help="Width of the hex bolt head (mm)")
def render(self):
t = self.thickness

View File

@ -27,19 +27,19 @@ class WaivyKnob(Boxes):
# Add non default cli params if needed (see argparse std lib)
self.argparser.add_argument(
"--diameter", action="store", type=float, default=50.,
help="Diameter of the knob")
help="Diameter of the knob (mm)")
self.argparser.add_argument(
"--serrations", action="store", type=int, default=20,
help="Number of serrations")
self.argparser.add_argument(
"--serrationangle", action="store", type=float, default=45.,
help="higher values for deeper serrations")
help="higher values for deeper serrations (degrees)")
self.argparser.add_argument(
"--bolthole", action="store", type=float, default=6.,
help="Diameter of the bolt hole")
help="Diameter of the bolt hole (mm)")
self.argparser.add_argument(
"--hexhead", action="store", type=float, default=10.,
help="Width of the hex bolt head")
help="Width of the hex bolt head (mm)")
def render(self):
t = self.thickness