diff --git a/README.md b/README.md index c087628..bbed66a 100644 --- a/README.md +++ b/README.md @@ -1489,7 +1489,7 @@ Input ``` * **Trailing newline gets stripped.** * **Prompt string is printed to the standard output before reading input.** -* **Raises EOFError when user hits EOF (ctrl-d/z) or input stream gets exhausted.** +* **Raises EOFError when user hits EOF (ctrl-d/ctrl-z⏎) or input stream gets exhausted.** Command Line Arguments @@ -2952,7 +2952,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()): **Object for representing images.** ```python = pg.display.set_mode((width, height)) # Returns display surface. - = pg.Surface((width, height) [, flags]) # New RGB surface. RGBA if `flags=pg.SRCALPHA`. + = pg.Surface((width, height), flags=0) # New RGB surface. RGBA if `flags=pg.SRCALPHA`. = pg.image.load('') # Loads the image. Format depends on source. = .subsurface() # Returns a subsurface. ``` diff --git a/index.html b/index.html index c9fca8b..14acf5f 100644 --- a/index.html +++ b/index.html @@ -226,7 +226,7 @@ pre.prettyprint {
- +
@@ -1422,7 +1422,7 @@ pprint(<collection>, width=80, depth=
  • Trailing newline gets stripped.
  • Prompt string is printed to the standard output before reading input.
  • -
  • Raises EOFError when user hits EOF (ctrl-d/z) or input stream gets exhausted.
  • +
  • Raises EOFError when user hits EOF (ctrl-d/ctrl-z⏎) or input stream gets exhausted.
  • #Command Line Arguments

    import sys
     scripts_path = sys.argv[0]
    @@ -2540,7 +2540,7 @@ rect = pg.Rect(240, 2
     <list> = <Rect>.collidelistall(<list_of_Rect>)  # Returns indexes of all colliding Rects.
     

    Surface

    Object for representing images.

    <Surf> = pg.display.set_mode((width, height))   # Returns display surface.
    -<Surf> = pg.Surface((width, height) [, flags])  # New RGB surface. RGBA if `flags=pg.SRCALPHA`.
    +<Surf> = pg.Surface((width, height), flags=0)   # New RGB surface. RGBA if `flags=pg.SRCALPHA`.
     <Surf> = pg.image.load('<path>')                # Loads the image. Format depends on source.
     <Surf> = <Surf>.subsurface(<Rect>)              # Returns a subsurface.
     
    @@ -3007,7 +3007,7 @@ $ pyinstaller script.py --add-data '<path>:.'