Skip to content

Commit 3da9e8d

Browse files
committed
Fix several typos
1 parent 6702b3c commit 3da9e8d

File tree

17 files changed

+31
-31
lines changed

17 files changed

+31
-31
lines changed

PyFlow/Core/Common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def GetRangePct(MinValue, MaxValue, Value):
7676
:param MinValue: Minimum Value
7777
:param MaxValue: Maximum Value
7878
:param Value: Input value
79-
:returns: The percentage (from 0.0 to 1.0) betwen the two values where input value is
79+
:returns: The percentage (from 0.0 to 1.0) between the two values where input value is
8080
"""
8181
return (Value - MinValue) / (MaxValue - MinValue)
8282

PyFlow/Core/Interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def color():
140140
Can be used by gui wrapper class.
141141
142142
:returns: Rgba tuple
143-
:rtype: typle(0, 0, 0, 255)
143+
:rtype: tuple(0, 0, 0, 255)
144144
"""
145145
return (255, 0, 0, 255)
146146

PyFlow/Core/PinBase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PinBase(IPin):
4949
* **containerTypeChanged** : Fired when Pin Structure Changes
5050
* **dataBeenSet** : Fired when data changes, sends New Data
5151
* **dictChanged** : Fired when current structure changes to :py:const:`PyFlow.Core.Common.StructureType.Dict`, sends Dict key DataType
52-
* **errorOccurred** : Fired when some error fired, like incorrect dataType set, sends ocurred Error
52+
* **errorOccurred** : Fired when some error fired, like incorrect dataType set, sends occurred Error
5353
* **errorCleared** : Fired when error cleared
5454
5555
:ivar owningNode: Weak reference to owning node
@@ -214,7 +214,7 @@ def optionEnabled(self, option):
214214
return bool(self._flags & option)
215215

216216
def isAny(self):
217-
"""Wheter this pin of type Any or not
217+
"""Whether this pin of type Any or not
218218
219219
:rtype: bool
220220
"""

PyFlow/Packages/PyFlowBase/FunctionLibraries/DefaultLib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
class DefaultLib(FunctionLibraryBase):
33-
"""Default library builting stuff, variable types and conversions
33+
"""Default library building stuff, variable types and conversions
3434
"""
3535

3636
def __init__(self, packageName):

PyFlow/Packages/PyFlowBase/Nodes/colorRamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def keywords():
6363

6464
@staticmethod
6565
def description():
66-
return 'Editable fCurve maped from 0 to 1, click on empty Space to add point, and right Click to delete point'
66+
return 'Editable fCurve mapped from 0 to 1, click on empty Space to add point, and right Click to delete point'
6767

6868
def compute(self, *args, **kwargs):
6969
bezier = self._curveTypes[self._curveType] == "bezier"

PyFlow/Packages/PyFlowBase/Nodes/floatRamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def keywords():
6868

6969
@staticmethod
7070
def description():
71-
return 'Editable fCurve maped from 0 to 1, click on empty Space to add point, and right Click to delete point'
71+
return 'Editable fCurve mapped from 0 to 1, click on empty Space to add point, and right Click to delete point'
7272

7373
def compute(self, *args, **kwargs):
7474
bezier = self._curveTypes[self._curveType] == "bezier"

PyFlow/Packages/PyFlowBase/Pins/AnyPin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AnyPin(PinBase):
3333
This type of Pin allow to create abstract Nodes that can operate in more than one dataType.
3434
3535
By default AnyPin non Initialized will be marked as error, as PyFlow can't know what is inside.
36-
This Error can be avoided by enabling :py:attr:`PyFlow.Core.Common.PinOptions.AllowAny`. Thats how NonTyped Lists are made.
36+
This Error can be avoided by enabling :py:attr:`PyFlow.Core.Common.PinOptions.AllowAny`. That's how NonTyped Lists are made.
3737
3838
By default :py:attr:`PyFlow.Core.Common.PinOptions.ChangeTypeOnConnection` is enabled, and that means that it will change
3939
its internal dataType to the new dataType provided by connection or user Initialization. If disabled, pin will not allow changes.

PyFlow/Packages/PyFlowBase/UI/UIPythonNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def onEdit(self):
190190
tempFilesDir = self.canvasRef().getApp().getTempDirectory()
191191

192192
if self._filePath == "":
193-
# if no file assotiated - create one
193+
# if no file associated - create one
194194
uidStr = str(self.uid).replace("-", "")
195195
self._filePath = os.path.join(tempFilesDir, "{}.py".format(uidStr))
196196

PyFlow/Tests/Test_General.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def test_reconnect_value(self):
157157
# n3.b is connected with n1.out
158158
# we expect n3.b breaks all connections before connecting with n2.out
159159
c2 = connectPins(n2Out, n3b)
160-
# check connections successfull
160+
# check connections successful
161161
self.assertEqual(c2, True)
162162
# check n2.out affects on n3.b
163163
self.assertEqual(n3b in n2Out.affects, True, "incorrect connection")

PyFlow/UI/Canvas/UINodeBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def finalizeRename(self, accepted=False):
669669
If user pressed :kbd:`escape` name before editing will be restored. If User pressed :kbd:`enter` or removed focus
670670
rename action will be accepted and node will be renamed and name will be checked for uniqueness.
671671
672-
:param accepted: Wheter user accepted editing or not
672+
:param accepted: Whether user accepted editing or not
673673
:type accepted: :class:`bool`
674674
"""
675675
if accepted:

PyFlow/UI/Tool/Tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def onDestroy(self):
5656
def saveState(self, settings):
5757
"""Called on tool save
5858
59-
When this method is called, corerct group is already selected.
59+
When this method is called, correct group is already selected.
6060
So you just need to call **setValue** here
6161
6262
.. code-block:: python
@@ -75,7 +75,7 @@ def restoreState(self, settings):
7575
"""Called when application loaded
7676
7777
Restore any saved state here.
78-
Same as **saveState**, settings group already selected, so jsut call **value** method
78+
Same as **saveState**, settings group already selected, so just call **value** method
7979
to access data
8080
8181
.. code-block::

PyFlow/UI/Widgets/BlueprintCanvas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ def dropEvent(self, event):
14491449

14501450
# try load mime data text as json
14511451
# in case if it is a variable
1452-
# if no keyboard modifires create context menu with two actions
1452+
# if no keyboard modifiers create context menu with two actions
14531453
# for creating getter or setter
14541454
# if control - create getter, if alt - create setter
14551455

PyFlow/UI/Widgets/QtSliders.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ class pyf_RampSpline(QtWidgets.QGraphicsView):
11391139
:tickClicked: Signal emitted when a UiTick element clicked, emits UiTick
11401140
:valueClicked: Signal emitted when a UiTick element clicked, emits (u,v)
11411141
:tickAdded: Signal emitted when a UiTick element added
1142-
:tickChanged: Signal emitted when a UiTick element cahnges values
1142+
:tickChanged: Signal emitted when a UiTick element changes values
11431143
:tickMoved: Signal emitted when a UiTick element moved
11441144
:tickRemoved: Signal emitted when a UiTick element deleted
11451145
"""
@@ -1248,9 +1248,9 @@ def sortedItems(self):
12481248
def addItem(self, u=0, v=0, raw_item=None):
12491249
"""Adds a new Item to the ramp
12501250
1251-
:param u: X postion for the item, defaults to 0
1251+
:param u: X position for the item, defaults to 0
12521252
:type u: float, optional
1253-
:param v: Y postion for the item, defaults to 0
1253+
:param v: Y position for the item, defaults to 0
12541254
:type v: float, optional
12551255
:param raw_item: Existing :obj:`PyFlow.Core.structs.Tick` to link with, if none, one new created , defaults to None
12561256
:type raw_item: :obj:`PyFlow.Core.structs.Tick`, optional
@@ -1265,11 +1265,11 @@ def addItem(self, u=0, v=0, raw_item=None):
12651265
self.computeDisplayPoints()
12661266

12671267
def setU(self, u, index=-1):
1268-
"""Sets the X postion for the selected item if no index provided
1268+
"""Sets the X position for the selected item if no index provided
12691269
12701270
:param u: New x position
12711271
:type u: float
1272-
:param index: Index of the tick to set the value in, orderer by current X postion, if -1 will try to set value in all selected Ticks, defaults to -1
1272+
:param index: Index of the tick to set the value in, orderer by current X position, if -1 will try to set value in all selected Ticks, defaults to -1
12731273
:type index: int, optional
12741274
"""
12751275
if index in range(0, len(self.items()) - 1):
@@ -1286,11 +1286,11 @@ def setU(self, u, index=-1):
12861286
self.computeDisplayPoints()
12871287

12881288
def setV(self, v, index=-1):
1289-
"""Sets the Y postion for the selected item if no index provided
1289+
"""Sets the Y position for the selected item if no index provided
12901290
12911291
:param v: New y position
12921292
:type v: float
1293-
:param index: Index of the tick to set the value in, orderer by current X postion, if -1 will try to set value in all selected Ticks, defaults to -1
1293+
:param index: Index of the tick to set the value in, orderer by current X position, if -1 will try to set value in all selected Ticks, defaults to -1
12941294
:type index: int, optional
12951295
"""
12961296
if index in range(0, len(self.items()) - 1):
@@ -1309,7 +1309,7 @@ def setV(self, v, index=-1):
13091309
def evaluateAt(self, value):
13101310
"""Computes the result of the interpolation for the guiven U value
13111311
1312-
:param value: x postion to evaluate at
1312+
:param value: x position to evaluate at
13131313
:type value: float
13141314
:returns: modified value by the curve
13151315
:rtype: float
@@ -1440,7 +1440,7 @@ class pyf_RampColor(pyf_RampSpline):
14401440
:valueClicked: Signal emitted when a UiTick element clicked, emits (u,v)
14411441
:colorClicked: Signal emitted when a UiTick element clicked. emits [float,float,float] in range 0-1
14421442
:tickAdded: Signal emitted when a UiTick element added
1443-
:tickChanged: Signal emitted when a UiTick element cahnges values
1443+
:tickChanged: Signal emitted when a UiTick element changes values
14441444
:tickMoved: Signal emitted when a UiTick element moved
14451445
:tickRemoved: Signal emitted when a UiTick element deleted
14461446
@@ -1466,7 +1466,7 @@ def values(self):
14661466
def addItem(self, u=0, v=[0, 0, 0], raw_item=None):
14671467
"""Adds a new Item to the ramp
14681468
1469-
:param u: X postion for the item, defaults to 0
1469+
:param u: X position for the item, defaults to 0
14701470
:type u: float, optional
14711471
:param v: color value for the item, defaults to [0,0,0]
14721472
:type v: [float,float,float], optional
@@ -1489,7 +1489,7 @@ def setColor(self, color, index=-1):
14891489
14901490
:param color: New color
14911491
:type color: [float,float,float]
1492-
:param index: Index of the tick to set the value in, orderer by current X postion, if -1 will try to set value in all selected Ticks, defaults to -1
1492+
:param index: Index of the tick to set the value in, orderer by current X position, if -1 will try to set value in all selected Ticks, defaults to -1
14931493
:type index: int, optional
14941494
"""
14951495
if index in range(0, len(self.items()) - 1):

PyFlow/Wizards/WizardDialogueBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def onGoForward(self):
142142
else:
143143
self.setMessageRst(self.errorMessages[self.stackWidget.currentWidget()])
144144

145-
def addPageWidget(self, widget, messageRst, errorMessageRst="Somethig is wrong!", validationHook=lambda: True, pageEnterCallback=lambda: None):
145+
def addPageWidget(self, widget, messageRst, errorMessageRst="Something is wrong!", validationHook=lambda: True, pageEnterCallback=lambda: None):
146146
self.stackWidget.addWidget(widget)
147147
self.messages[widget] = messageRst
148148
self.pageValidationHooks[widget] = validationHook

PyFlow/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## limitations under the License.
1414

1515

16-
"""Common utils working with packags.
16+
"""Common utils working with packages.
1717
"""
1818

1919
# this line adds extension-packages not installed inside the PyFlow directory
@@ -190,7 +190,7 @@ def recursePackagePaths(inPath):
190190
if "PYFLOW_PACKAGES_PATHS" in os.environ:
191191
delim = ';'
192192
pathsString = os.environ["PYFLOW_PACKAGES_PATHS"]
193-
# remove delimeters from right
193+
# remove delimiters from right
194194
pathsString = pathsString.rstrip(delim)
195195
for packagesRoot in pathsString.split(delim):
196196
if os.path.exists(packagesRoot):

PyFlow/graphUiParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run(filePath):
4848
prop.setLayout(QVBoxLayout())
4949
prop.setWindowTitle(filePath)
5050
prop.setWindowIcon(QtGui.QIcon(":/LogoBpApp.png"))
51-
# Initalize packages
51+
# Initialize packages
5252
try:
5353
INITIALIZE()
5454
man = GraphManagerSingleton().get()
@@ -93,7 +93,7 @@ def quitEvent():
9393
# If no GraphInput Nodes Exit propgram
9494
else:
9595
msg.setInformativeText(filePath)
96-
msg.setDetailedText("The file doesn't containt graphInputs nodes")
96+
msg.setDetailedText("The file doesn't contain graphInputs nodes")
9797
msg.setWindowTitle("PyFlow Ui Graph Parser")
9898
msg.setStandardButtons(QMessageBox.Ok)
9999
msg.show()

docs/source/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
About this project
22
==================
33

4-
**PyFlow** is a general purpose runtime extendable python qt visual scripting framework. Was inspired by such softwares like `Unreal Blueprints`_, `Softimege XSI ICE`_, `Fabric Engine`_.
4+
**PyFlow** is a general purpose runtime extendable python Qt visual scripting framework. Was inspired by such software as `Unreal Blueprints`_, `Softimege XSI ICE`_, `Fabric Engine`_.
55

66
.. _Unreal Blueprints: https://docs.unrealengine.com/en-US/Engine/Blueprints/index.html
77
.. _Softimege XSI ICE: https://en.wikipedia.org/wiki/Autodesk_Softimage#ICE_Interactive_Creative_Environment

0 commit comments

Comments
 (0)