Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various source comment typos #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions MoocChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def geometry_presence(doc=None, sketch_label=None, count=None, isclosed=None):
sketch_label=None,
count=None,
isclosed=None) -> 0 or 1
check if the skecth have the count of geometrie and if the wire is closed
check if the sketch has the geometry count and if the wire is closed
"""
if DEBUG:
print(
Expand Down Expand Up @@ -541,7 +541,7 @@ def external_geometry_presence(doc=None, sketch_label=None, count=None):
"""external_geometry_presence(doc=None,
sketch_label=None,
count=None) -> 0 or 1
Check if the skecth contain the count of geometrie and if the wire is
Check if the sketch contains the count of geometry and if the wire is
closed.
"""
if DEBUG:
Expand Down Expand Up @@ -583,7 +583,7 @@ def constraint_presence(doc=None, sketch_label=None, count=None, type=None, valu
count=None,
type=None,
value=None) -> 0 or 1
Check if the skecth contain the count of constraint's type and value.
Check if the sketch contains the count of constraint's type and value.
"""
if DEBUG:
print(
Expand Down Expand Up @@ -649,7 +649,7 @@ def dimension_constraint_presence(
type=None,
value=None,
count=None) -> 0 or 1
Check if the skecth contain the count of constraint's type and value.
Check if the sketch contains the count of constraint's type and value.
"""
if DEBUG:
print(
Expand Down Expand Up @@ -709,7 +709,7 @@ def pad_presence(doc=None, name=None, type=None, length=None, midplane=None):
type=None,
length=None,
midplane=None) -> 0 or 1
Check the presence of pad.
Check for the presence of pad.
"""
r = []
doc = get_document(doc)
Expand Down Expand Up @@ -758,7 +758,7 @@ def pocket_presence(
length=None,
midplane=None,
reversed=None) -> 0 or 1
Check the presence of pocket.
Check for the presence of pocket.
"""
if DEBUG:
print(
Expand Down Expand Up @@ -841,7 +841,7 @@ def additiveloft_presence(doc=None, name=None, outlist=None, ruled=None, closed=
outlist=None,
ruled=None,
closed=None) -> 0 or 1
Check the presence of pocket.
Check for the presence of pocket.
"""
if DEBUG:
print(
Expand Down Expand Up @@ -913,7 +913,7 @@ def additivepipe_presence(doc=None, name=None, outlist=None, ruled=None, closed=
outlist=None,
ruled=None,
closed=None) -> 0 or 1
Check the presence of pocket.
Check for the presence of pocket.
"""
if DEBUG:
print(
Expand Down Expand Up @@ -981,7 +981,7 @@ def additivepipe_presence(doc=None, name=None, outlist=None, ruled=None, closed=

def revolution_presence(doc=None):
"""revolution_presence(doc=None) -> 0 or 1
Check the presence of revolution.
Check for the presence of revolution.
"""
r = []
doc = get_document(doc)
Expand All @@ -996,7 +996,7 @@ def revolution_presence(doc=None):

def groove_presence(doc=None):
"""groove_presence(doc=None) -> 0 or 1
Check the presence of groove.
Check for the presence of groove.
"""
r = []
doc = get_document(doc)
Expand All @@ -1018,7 +1018,7 @@ def polar_pattern_presence(
angle=None,
occurrences=None,
axis=None) -> 0 or 1
Check the presence of polar pattern.
Check for the presence of polar pattern.
"""
r = []
doc = get_document(doc)
Expand Down Expand Up @@ -1066,7 +1066,7 @@ def polar_pattern_presence(

def linear_pattern_presence(doc=None):
"""linear_pattern_presence(doc=None) -> 0 or 1
Check the presence of linear pattern.
Check for the presence of linear pattern.
"""
r = []
doc = get_document(doc)
Expand All @@ -1087,7 +1087,7 @@ def mirrored_pattern_presence(
plane_name=None,
plane_axis=None,
bf_name=None) -> 0 or 1
Check the presence of mirrored pattern.
Check for the presence of mirrored pattern.
"""
r = []
doc = get_document(doc)
Expand Down Expand Up @@ -1132,7 +1132,7 @@ def boundbox_dimensions(doc=None, name=None, typeId=None, x=None, y=None, z=None
x=None,
y=None,
z=None) -> 0 or 1
Check the length's dimensions of boundbox.
Check for the length's dimensions of boundbox.
"""
r = []
doc = get_document(doc)
Expand Down
2 changes: 1 addition & 1 deletion MoocInformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def checkMoocWBVersion(MOOC_VERSION):
from PySide2 import QtWidgets
reply = QtWidgets.QMessageBox.information(None, FreeCAD.Qt.translate("MOOC", 'Mise à jour nécessaire...'),
FreeCAD.Qt.translate("MOOC", '''Votre version de l'atelier MOOC est obsolète.\nMerci de le mettre à jour à l'aide de l'addon manager.'''))
# only check the first occurence
# only check the first occurrence
break
6 changes: 3 additions & 3 deletions MoocPlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import FreeCAD as app
import FreeCADGui as gui

# import webbrowser to play video inside defaut web Browser
# import webbrowser to play video inside default web Browser
import webbrowser

# import MoocChecker
Expand Down Expand Up @@ -222,7 +222,7 @@ def backward_step(self):
self.fill_data()
else:
if DEBUG:
print("This is the begining !")
print("This is the beginning !")
pass

def fill_data(self):
Expand Down Expand Up @@ -378,7 +378,7 @@ def display_lesson_description(self, item):
row = self.listWidget_trainings.row(item)
# description is
desc = self.lessons_list[row].get_description()
# display descritpion in label_description
# display description in label_description
self.label_description.setText(desc)

def launch_mooc(self, item):
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Cet atelier FreeCAD vous suivra tous le long de ce mooc pour vous guider dans l'
4. Dans la fenêtre qui s'ouvre, attendre le chargement de la liste des addons.
5. Chercher l'atelier MOOC et cliquer une fois dessus.
6. Cliquer sur le bouton Install / update
7. À la fin de l'installation quand la fenêtre dit "Succesfully installed ..." cliquer sur le bouton Close.
7. À la fin de l'installation quand la fenêtre dit "Successfully installed ..." cliquer sur le bouton Close.
8. Enfin REDÉMARRER FreeCAD.


Expand Down