Skip to content

Commit

Permalink
fix: typo wavy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua authored and florianfesti committed Mar 30, 2024
1 parent 677d9a8 commit f5d0583
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion boxes/generators/coinbanksafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def holeCB():
3, 1, "right", self.parts.disc, 2*small_radius,
callback=lambda:self.rectangularHole(0, 0, t, t))
self.partsMatrix(
3, 1, "right", self.parts.waivyKnob, 2*small_radius,
3, 1, "right", self.parts.wavyKnob, 2*small_radius,
callback=lambda:self.rectangularHole(0, 0, t, t))

self.partsMatrix(3, 1, "up only", self.parts.disc, 2*big_radius)
Expand Down
6 changes: 3 additions & 3 deletions boxes/generators/polehook.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def render(self):
self.parts.disc(d+2*ww, hole=self.screw, move="right")
self.parts.disc(d+2*ww, callback=self.clamp, hole=self.screw+0.5*t, move="right")
self.parts.disc(d+2*ww, hole=self.screw+0.5*t, move="right")
self.parts.waivyKnob(50, callback=lambda:self.nutHole(self.screwhead),
self.parts.wavyKnob(50, callback=lambda:self.nutHole(self.screwhead),
move="right")
self.parts.waivyKnob(50, callback=lambda:self.nutHole(self.screwhead),
self.parts.wavyKnob(50, callback=lambda:self.nutHole(self.screwhead),
move="right")
self.parts.waivyKnob(50, hole=self.screw+0.5*t, move="right")
self.parts.wavyKnob(50, hole=self.screw+0.5*t, move="right")

ll = ((d**2 + (0.5*(d+ww))**2)**0.5) - 0.5 * d
for i in range(3):
Expand Down
4 changes: 2 additions & 2 deletions boxes/generators/rotary.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def render(self):
self.rectangularWall(hw - 2 * t - 2, 60, edges="efef", move="right")
self.rectangularWall(hw - 4 * t - 4, 60, edges="efef", move="right")
# Spindle auxiliaries
self.parts.waivyKnob(50, callback=lambda: self.nutHole("M8"), move="right")
self.parts.waivyKnob(50, callback=lambda: self.nutHole("M8"), move="right")
self.parts.wavyKnob(50, callback=lambda: self.nutHole("M8"), move="right")
self.parts.wavyKnob(50, callback=lambda: self.nutHole("M8"), move="right")

self.rectangularWall(hw - 2 * t - 4, 60, edges="efef", move="up only")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from boxes import *


class WaivyKnob(Boxes):
class WavyKnob(Boxes):
"""Round knob serrated outside for better gripping"""

ui_group = "Part"
Expand Down Expand Up @@ -47,11 +47,11 @@ def __init__(self) -> None:
def render(self):
t = self.thickness
angle = self.serrationangle
self.parts.waivyKnob(self.diameter, self.serrations, angle,
self.parts.wavyKnob(self.diameter, self.serrations, angle,
callback=lambda:self.dHole(0, 0, d=self.bolthole,
rel_w=self.dhole),
move="right")
self.parts.waivyKnob(self.diameter, self.serrations, angle,
self.parts.wavyKnob(self.diameter, self.serrations, angle,
callback=lambda: self.nutHole(self.hexhead),
move="right")
self.parts.waivyKnob(self.diameter, self.serrations, angle)
self.parts.wavyKnob(self.diameter, self.serrations, angle)
4 changes: 2 additions & 2 deletions boxes/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def disc(self, diameter: float, hole: float = 0, dwidth: float = 1.0, callback:
self.edge(2*r*sin(radians(a)))
self.move(size*dwidth, size, move, label=label)

def waivyKnob(self, diameter: float, n: int = 20, angle: float = 45, hole: float = 0, callback: Callable | None = None, move: str = "") -> None:
"""Disc with a waivy edge to be easier to be gripped
def wavyKnob(self, diameter: float, n: int = 20, angle: float = 45, hole: float = 0, callback: Callable | None = None, move: str = "") -> None:
"""Disc with a wavy edge to be easier to be gripped
:param diameter: diameter of the knob
:param n: (Default value = 20) number of waves
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/api_existing_parts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ More parts are available in a separate class. An instance is available as
**Boxes.parts**

.. automethod:: boxes.parts.Parts.disc
.. automethod:: boxes.parts.Parts.waivyKnob
.. automethod:: boxes.parts.Parts.wavyKnob
.. automethod:: boxes.parts.Parts.concaveKnob
.. automethod:: boxes.parts.Parts.ringSegment
10 changes: 5 additions & 5 deletions po/boxes.py.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7905,20 +7905,20 @@ msgid "finger holes"
msgstr ""

#. name of box generator
#: boxes/generators/waivyknob.py
msgid "WaivyKnob"
#: boxes/generators/wavyknob.py
msgid "WavyKnob"
msgstr ""

msgid "WaivyKnob Settings"
msgid "WavyKnob Settings"
msgstr ""

#. parameter name
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "serrationangle"
msgstr ""

#. help for parameter serrationangle
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "higher values for deeper serrations (degrees)"
msgstr ""

Expand Down
10 changes: 5 additions & 5 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -3777,20 +3777,20 @@ msgid "additional lid (for straight top_edge only)"
msgstr "Zusätzlicher Deckel (nur für gerade Oberkanten)"

#. name of box generator
#: boxes/generators/waivyknob.py
msgid "WaivyKnob"
#: boxes/generators/wavyknob.py
msgid "WavyKnob"
msgstr "Geriffelter-Drehknopf"

msgid "WaivyKnob Settings"
msgid "WavyKnob Settings"
msgstr "Einstellungen Drehknopf"

#. parameter name
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "serrationangle"
msgstr "Verzahnungswinkel"

#. help for parameter serrationangle
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "higher values for deeper serrations (degrees)"
msgstr "höherer Wert für tiefere Verzahnung (Grad)"

Expand Down
14 changes: 7 additions & 7 deletions po/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -3759,20 +3759,20 @@ msgid "additional lid (for straight top_edge only)"
msgstr "additional lid (for straight top_edge only)"

#. name of box generator
#: boxes/generators/waivyknob.py
msgid "WaivyKnob"
msgstr "WaivyKnob"
#: boxes/generators/wavyknob.py
msgid "WavyKnob"
msgstr "WavyKnob"

msgid "WaivyKnob Settings"
msgstr "WaivyKnob Settings"
msgid "WavyKnob Settings"
msgstr "WavyKnob Settings"

#. parameter name
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "serrationangle"
msgstr "serrationangle"

#. help for parameter serrationangle
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "higher values for deeper serrations (degrees)"
msgstr "higher values for deeper serrations (degrees)"

Expand Down
10 changes: 5 additions & 5 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -3741,20 +3741,20 @@ msgid "additional lid (for straight top_edge only)"
msgstr "couvercle supplémentaire (pour un bord haut droit seulement)"

#. name of box generator
#: boxes/generators/waivyknob.py
msgid "WaivyKnob"
#: boxes/generators/wavyknob.py
msgid "WavyKnob"
msgstr "Bouton cannelé"

msgid "WaivyKnob Settings"
msgid "WavyKnob Settings"
msgstr "Réglages du Bouton cannelé"

#. parameter name
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "serrationangle"
msgstr "angle cannelage"

#. help for parameter serrationangle
#: boxes/generators/waivyknob.py
#: boxes/generators/wavyknob.py
msgid "higher values for deeper serrations (degrees)"
msgstr "Une valeur plus grande donne une cannelure plus profonde (degré)"

Expand Down
4 changes: 2 additions & 2 deletions po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -1203,10 +1203,10 @@ msgstr "松弛"
msgid "Use hexagonal arrangement for the holes instead of orthogonal"
msgstr "孔采用六角形排列,而不是正交排列"

msgid "WaivyKnob"
msgid "WavyKnob"
msgstr "波浪形旋钮"

msgid "WaivyKnob Settings"
msgid "WavyKnob Settings"
msgstr "波浪形旋钮设置"

msgid "Width of the cards"
Expand Down

0 comments on commit f5d0583

Please sign in to comment.