Knobs: Improve param descriptions
This commit is contained in:
parent
696307397d
commit
dd2cedeb57
|
@ -17,7 +17,7 @@
|
||||||
from boxes import *
|
from boxes import *
|
||||||
|
|
||||||
class ConcaveKnob(Boxes):
|
class ConcaveKnob(Boxes):
|
||||||
"""Round knob serraded outside for better gripping"""
|
"""Round knob serrated outside for better gripping"""
|
||||||
|
|
||||||
ui_group = "Part"
|
ui_group = "Part"
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class ConcaveKnob(Boxes):
|
||||||
# Add non default cli params if needed (see argparse std lib)
|
# Add non default cli params if needed (see argparse std lib)
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--diameter", action="store", type=float, default=50.,
|
"--diameter", action="store", type=float, default=50.,
|
||||||
help="Diameter of the knob")
|
help="Diameter of the knob (mm)")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--serrations", action="store", type=int, default=3,
|
"--serrations", action="store", type=int, default=3,
|
||||||
help="Number of serrations")
|
help="Number of serrations")
|
||||||
|
@ -39,10 +39,10 @@ class ConcaveKnob(Boxes):
|
||||||
help="Angle between convex and concave parts")
|
help="Angle between convex and concave parts")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--bolthole", action="store", type=float, default=6.,
|
"--bolthole", action="store", type=float, default=6.,
|
||||||
help="Diameter of the bolt hole")
|
help="Diameter of the bolt hole (mm)")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--hexhead", action="store", type=float, default=10.,
|
"--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):
|
def render(self):
|
||||||
t = self.thickness
|
t = self.thickness
|
||||||
|
|
|
@ -27,19 +27,19 @@ class WaivyKnob(Boxes):
|
||||||
# Add non default cli params if needed (see argparse std lib)
|
# Add non default cli params if needed (see argparse std lib)
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--diameter", action="store", type=float, default=50.,
|
"--diameter", action="store", type=float, default=50.,
|
||||||
help="Diameter of the knob")
|
help="Diameter of the knob (mm)")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--serrations", action="store", type=int, default=20,
|
"--serrations", action="store", type=int, default=20,
|
||||||
help="Number of serrations")
|
help="Number of serrations")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--serrationangle", action="store", type=float, default=45.,
|
"--serrationangle", action="store", type=float, default=45.,
|
||||||
help="higher values for deeper serrations")
|
help="higher values for deeper serrations (degrees)")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--bolthole", action="store", type=float, default=6.,
|
"--bolthole", action="store", type=float, default=6.,
|
||||||
help="Diameter of the bolt hole")
|
help="Diameter of the bolt hole (mm)")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--hexhead", action="store", type=float, default=10.,
|
"--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):
|
def render(self):
|
||||||
t = self.thickness
|
t = self.thickness
|
||||||
|
|
Loading…
Reference in New Issue