From f71223ba13bca885ecf11ea0e794043341f12d1e Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 4 Aug 2021 06:11:38 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - examples/misc/djangotasks/media/TodoApp.py - examples/misc/djangowanted/media/WebPageEdit.py - examples/misc/djangoweb/media/WebPageEdit.py - examples/misc/flaskexamples/doc/index.rst - examples/timesheet/libtimesheet/view/components/TimeGrid.py - examples/toggle/Toggle.py - pyjs/builtin/pyjslib.py - pyjswidgets/dynamic.py - pyjswidgets/pyjamas/Timer.py - pyjswidgets/pyjamas/chart/GChart.py Fixes: - Should read `function` rather than `functon`. - Should read `testing` rather than `testint`. - Should read `success` rather than `succes`. - Should read `return` rather than `retun`. - Should read `position` rather than `postition`. - Should read `necessary` rather than `neccessary`. - Should read `asynchronicity` rather than `asynchonicity`. - Should read `argument` rather than `arguement`. --- examples/misc/djangotasks/media/TodoApp.py | 2 +- examples/misc/djangowanted/media/WebPageEdit.py | 2 +- examples/misc/djangoweb/media/WebPageEdit.py | 2 +- examples/misc/flaskexamples/doc/index.rst | 2 +- examples/timesheet/libtimesheet/view/components/TimeGrid.py | 2 +- examples/toggle/Toggle.py | 2 +- pyjs/builtin/pyjslib.py | 2 +- pyjswidgets/dynamic.py | 2 +- pyjswidgets/pyjamas/Timer.py | 2 +- pyjswidgets/pyjamas/chart/GChart.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/misc/djangotasks/media/TodoApp.py b/examples/misc/djangotasks/media/TodoApp.py index b05d2e27a..ade625398 100644 --- a/examples/misc/djangotasks/media/TodoApp.py +++ b/examples/misc/djangotasks/media/TodoApp.py @@ -40,7 +40,7 @@ def onKeyDown(self, sender, keyCode, modifiers): def onKeyPress(self, sender, keyCode, modifiers): """ - This functon handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. + This function handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. """ if keyCode == KeyboardListener.KEY_ENTER and sender == self.todoTextBox: id = self.remote.addTask(sender.getText(),self) diff --git a/examples/misc/djangowanted/media/WebPageEdit.py b/examples/misc/djangowanted/media/WebPageEdit.py index 938732160..2b41fad22 100644 --- a/examples/misc/djangowanted/media/WebPageEdit.py +++ b/examples/misc/djangowanted/media/WebPageEdit.py @@ -70,7 +70,7 @@ def onKeyDown(self, sender, keyCode, modifiers): def onKeyPress(self, sender, keyCode, modifiers): """ - This functon handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. + This function handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. """ pass diff --git a/examples/misc/djangoweb/media/WebPageEdit.py b/examples/misc/djangoweb/media/WebPageEdit.py index 10f39db4c..2e4706761 100644 --- a/examples/misc/djangoweb/media/WebPageEdit.py +++ b/examples/misc/djangoweb/media/WebPageEdit.py @@ -73,7 +73,7 @@ def onKeyDown(self, sender, keyCode, modifiers): def onKeyPress(self, sender, keyCode, modifiers): """ - This functon handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. + This function handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key. In the future, this method will also handle the auto complete feature. """ pass diff --git a/examples/misc/flaskexamples/doc/index.rst b/examples/misc/flaskexamples/doc/index.rst index d1ff31b81..ff2c09c6e 100644 --- a/examples/misc/flaskexamples/doc/index.rst +++ b/examples/misc/flaskexamples/doc/index.rst @@ -169,7 +169,7 @@ More Fun with Asynchronicity ============================ By using Pyjamas, Flask, and Celery we can have multiple levels of -asynchonicity. There is an included example that shows how one can use +asynchronicity. There is an included example that shows how one can use JSON-RPC from a pyjamas application to initiate an asynchonous job on a Flask server. Since we are using RabbitMQ, we can off-load the resource intensive RPC requests to machines other than the webserver. diff --git a/examples/timesheet/libtimesheet/view/components/TimeGrid.py b/examples/timesheet/libtimesheet/view/components/TimeGrid.py index df0357c25..f4c20f806 100644 --- a/examples/timesheet/libtimesheet/view/components/TimeGrid.py +++ b/examples/timesheet/libtimesheet/view/components/TimeGrid.py @@ -99,7 +99,7 @@ def selectCell(self, row, col): self.currentCol = col self.getWidget(self.currentRow, self.currentCol).setFocus(True) return - # Now we're moving to new postition, just make sure + # Now we're moving to new position, just make sure # that the previous cells are filled in correctly if not self.checkCell(self.currentRow, self.currentCol, True): # Nope. We won't move diff --git a/examples/toggle/Toggle.py b/examples/toggle/Toggle.py index 752ca362d..9a7239977 100644 --- a/examples/toggle/Toggle.py +++ b/examples/toggle/Toggle.py @@ -1,4 +1,4 @@ -""" testint our demo slider +""" testing our demo slider """ import pyjd # dummy in pyjs diff --git a/pyjs/builtin/pyjslib.py b/pyjs/builtin/pyjslib.py index 27567ae30..a7776255f 100644 --- a/pyjs/builtin/pyjslib.py +++ b/pyjs/builtin/pyjslib.py @@ -7694,7 +7694,7 @@ def _fill_number(self, spec, num, to_digits, to_prefix, fill_char, out.append(num[to_remainder:]) if spec.n_rpadding: out.append_multiple_char(fill_char[0], spec.n_rpadding) - #if complex, need to call twice - just retun the buffer + #if complex, need to call twice - just return the buffer return out.build() def _format_int_or_long(self, w_num, kind): diff --git a/pyjswidgets/dynamic.py b/pyjswidgets/dynamic.py index 968f9c052..eaad4742e 100644 --- a/pyjswidgets/dynamic.py +++ b/pyjswidgets/dynamic.py @@ -31,7 +31,7 @@ def createHttpRequest(): # # @param url URL to load # @param onreadystatechange function to be used for onreadystatechange -# @param on_load_fn function to be called on succes, with parameters event, request +# @param on_load_fn function to be called on success, with parameters event, request # @param async request mode # @returns async == False: request object, async == True: None # diff --git a/pyjswidgets/pyjamas/Timer.py b/pyjswidgets/pyjamas/Timer.py index 49064274f..574224255 100644 --- a/pyjswidgets/pyjamas/Timer.py +++ b/pyjswidgets/pyjamas/Timer.py @@ -135,7 +135,7 @@ def run(self): The method that gets fired when the timer goes off. The base class raises a NotImplementedError if it is not overridden by a subclass or if Timer isn't instantiated with - the notify keyword arguement. + the notify keyword argument. """ raise NotImplementedError, ('''Timer.run() must be overridden or Timer must be instantiated with notify keyword diff --git a/pyjswidgets/pyjamas/chart/GChart.py b/pyjswidgets/pyjamas/chart/GChart.py index 60b4e299b..ef95b73c1 100644 --- a/pyjswidgets/pyjamas/chart/GChart.py +++ b/pyjswidgets/pyjamas/chart/GChart.py @@ -3825,7 +3825,7 @@ def isHoverFeedbackRenderingPanel(self, rpIndex): * tests) when the canvas is re-inserted into the DOM. * * See TestGChart55.java and TestGChart55a.java for more - * info on the GWTCanvas bug that makes this code neccessary. + * info on the GWTCanvas bug that makes this code necessary. * * TODO: Implement technique of GWTCanvasIssue293.patch to * override removeFromParent and store/restore innerHTML