From 2fa3950485df67831805b8403a8739ff50417347 Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 30 Jul 2021 14:07:59 -0400 Subject: [PATCH] Fix various source comment typos --- MoocChecker.py | 28 ++++++++++++++-------------- MoocInformations.py | 2 +- MoocPlayer.py | 6 +++--- README.md | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/MoocChecker.py b/MoocChecker.py index aa35c9c..c8b6530 100755 --- a/MoocChecker.py +++ b/MoocChecker.py @@ -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( @@ -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: @@ -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( @@ -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( @@ -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) @@ -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( @@ -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( @@ -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( @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/MoocInformations.py b/MoocInformations.py index a749f68..662bd54 100755 --- a/MoocInformations.py +++ b/MoocInformations.py @@ -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 diff --git a/MoocPlayer.py b/MoocPlayer.py index 288707d..6ad3177 100755 --- a/MoocPlayer.py +++ b/MoocPlayer.py @@ -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 @@ -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): @@ -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): diff --git a/README.md b/README.md index a1d1c34..baf588e 100755 --- a/README.md +++ b/README.md @@ -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.