From e065b061e9146292bcc01c3f52170681efdeeeda Mon Sep 17 00:00:00 2001 From: andresanches Date: Fri, 2 Apr 2021 22:05:02 -0700 Subject: [PATCH 1/2] Fix typo --- docs/5_app/app.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/5_app/app.rst b/docs/5_app/app.rst index d4310bd..6334270 100644 --- a/docs/5_app/app.rst +++ b/docs/5_app/app.rst @@ -116,7 +116,7 @@ intercept the S key and print a message:: if event.key == K_s: print('Key press S') -If the application has many shortcuts, the keys alone may not be enoufht and modifier keys (cmd, ctrl, alt, shift) can be used +If the application has many shortcuts, the keys alone may not be enough and modifier keys (cmd, ctrl, alt, shift) can be used to increase the number of combinations. The easiest way to represent these shortcuts is under the form of a dictionary, where the key/mod tuples are associated with a command strings. @@ -349,4 +349,4 @@ dir = (1, 1):: Here is the complete code: -.. literalinclude:: node1.py \ No newline at end of file +.. literalinclude:: node1.py From 05f1a8f6da1ff40191f3e72ed54206d00a72bae5 Mon Sep 17 00:00:00 2001 From: andresanches Date: Fri, 2 Apr 2021 22:08:49 -0700 Subject: [PATCH 2/2] Update app.rst --- docs/5_app/app.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/5_app/app.rst b/docs/5_app/app.rst index 6334270..d26d615 100644 --- a/docs/5_app/app.rst +++ b/docs/5_app/app.rst @@ -48,7 +48,7 @@ Further we have to define the main event loop:: App.running = False pygame.quit() -At the end of the module we run a demo, if the programm is run directly and not +At the end of the module we run a demo, if the program is run directly and not imported as a module:: if __name__ == '__main__':