Fix typos and some whitespace

`codespell -q 3 -L ang,typ,vals,vertexes`
This commit is contained in:
luz.paz 2019-10-23 14:24:37 -04:00 committed by DeepSOIC
parent 39031ce730
commit bf8b2f2c5e
5 changed files with 40 additions and 43 deletions

View File

@ -174,7 +174,7 @@ def _getMetacontainerChildren(container, isrightcontainer_func):
def isAContainer(obj): def isAContainer(obj):
'''isAContainer(obj): returns True if obj is an object container, such as '''isAContainer(obj): returns True if obj is an object container, such as
Group, Part, Body. The important characterisic of an object being a Group, Part, Body. The important characteristic of an object being a
container is that it can be activated to receive new objects. Documents container is that it can be activated to receive new objects. Documents
are considered containers, too.''' are considered containers, too.'''

View File

@ -125,7 +125,7 @@ class LatticeFeature(object):
# Auto-On an Auto-Off can be modified when recomputing. Force values are going to stay. # Auto-On an Auto-Off can be modified when recomputing. Force values are going to stay.
prop = "ExposePlacement" prop = "ExposePlacement"
obj.addProperty("App::PropertyBool",prop,"Lattice","Makes the placement synchronized to Placement property. This will oftem make this object unmoveable. Not applicable to arrays.") obj.addProperty("App::PropertyBool",prop,"Lattice","Makes the placement synchronized to Placement property. This will oftem make this object unmovable. Not applicable to arrays.")
self.derivedInit(obj) self.derivedInit(obj)
@ -375,4 +375,3 @@ def splitSelection(sel):
else: else:
shapes.append(selobj) shapes.append(selobj)
return (lattices, shapes) return (lattices, shapes)

View File

@ -113,7 +113,7 @@ class _BoundBox:
obj.CompoundTraversal = ["Use as a whole","Direct children only","Recursive"] obj.CompoundTraversal = ["Use as a whole","Direct children only","Recursive"]
obj.CompoundTraversal = "Use as a whole" obj.CompoundTraversal = "Use as a whole"
obj.addProperty("App::PropertyBool","Precision","BoundBox","Use precise alorithm (slower).") obj.addProperty("App::PropertyBool","Precision","BoundBox","Use precise algorithm (slower).")
obj.Precision = True obj.Precision = True
obj.addProperty("App::PropertyEnumeration","OrientMode","BoundBox","Choose the orientation of bounding boxes to be made.") obj.addProperty("App::PropertyEnumeration","OrientMode","BoundBox","Choose the orientation of bounding boxes to be made.")

View File

@ -315,7 +315,7 @@ class _CommandLatticePopulateChildren_Move:
infoMessage("Move children", infoMessage("Move children",
"Moved Children command. Creates a compound from another compound, by moving its children.\n\n"+ "Moved Children command. Creates a compound from another compound, by moving its children.\n\n"+
"Each child is moved from one placement to another placement. Please select a compound, then a placement/array to move from, and an array of placements to move to (order matters).\n"+ "Each child is moved from one placement to another placement. Please select a compound, then a placement/array to move from, and an array of placements to move to (order matters).\n"+
"An array of placements can be used insead of a compound.") "An array of placements can be used instead of a compound.")
return return
cmdPopulate_shapes_FromTo() cmdPopulate_shapes_FromTo()
except Exception as err: except Exception as err:
@ -350,4 +350,3 @@ if FreeCAD.GuiUp:
exportedCommands = ['Lattice2_PopulateChildrenGroupCommand'] exportedCommands = ['Lattice2_PopulateChildrenGroupCommand']
# -------------------------- /Gui command -------------------------------------------------- # -------------------------- /Gui command --------------------------------------------------

View File

@ -51,7 +51,7 @@ class ValueSeriesGenerator:
# first, try to guess interface version. If we are re-adding properties to old feature, # first, try to guess interface version. If we are re-adding properties to old feature,
# it already has some other properties, but not Version. So we should default to 0 # it already has some other properties, but not Version. So we should default to 0
# in this case. Therwise the Version property already exists, so default desn't matter; # in this case. Otherwise the Version property already exists, so default doesn't matter;
# or we are creating a new generator, so default to 1. # or we are creating a new generator, so default to 1.
self._addProperty("App::PropertyInteger" ,"VSGVersion" , 0 if hasattr(self.documentObject, "Values") else 1 , groupname_gen, "Interface version") self._addProperty("App::PropertyInteger" ,"VSGVersion" , 0 if hasattr(self.documentObject, "Values") else 1 , groupname_gen, "Interface version")
self.documentObject.setEditorMode("VSGVersion", 2) #hide this property self.documentObject.setEditorMode("VSGVersion", 2) #hide this property
@ -268,4 +268,3 @@ class ValueSeriesGenerator:
# finally. Fill in the values. # finally. Fill in the values.
if obj.ValuesSource != "Values Property": if obj.ValuesSource != "Values Property":
obj.Values = [str(v) for v in values] obj.Values = [str(v) for v in values]