Skip to content

Quick typo fix #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/5_app/app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -349,4 +349,4 @@ dir = (1, 1)::

Here is the complete code:

.. literalinclude:: node1.py
.. literalinclude:: node1.py