@ -226,7 +226,7 @@ pre.prettyprint {
< body >
< header >
< aside > October 8 , 2021< / aside >
< aside > October 13 , 2021< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / header >
@ -1422,7 +1422,7 @@ pprint(<collection>, width=<span class="hljs-number">80</span>, depth=<spa
< ul >
< li > < strong > Trailing newline gets stripped.< / strong > < / li >
< li > < strong > Prompt string is printed to the standard output before reading input.< / strong > < / li >
< li > < strong > Raises EOFError when user hits EOF (ctrl-d/z) or input stream gets exhausted.< / strong > < / li >
< li > < strong > Raises EOFError when user hits EOF (ctrl-d/ctrl- z⏎ ) or input stream gets exhausted.< / strong > < / li >
< / ul >
< div > < h2 id = "commandlinearguments" > < a href = "#commandlinearguments" name = "commandlinearguments" > #< / a > Command Line Arguments< / h2 > < pre > < code class = "python language-python hljs" > < span class = "hljs-keyword" > import< / span > sys
scripts_path = sys.argv[< span class = "hljs-number" > 0< / span > ]
@ -2540,7 +2540,7 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2
< list> = < Rect> .collidelistall(< list_of_Rect> ) < span class = "hljs-comment" > # Returns indexes of all colliding Rects.< / span >
< / code > < / pre >
< div > < h3 id = "surface" > Surface< / h3 > < p > < strong > Object for representing images.< / strong > < / p > < pre > < code class = "python language-python hljs" > < Surf> = pg.display.set_mode((width, height)) < span class = "hljs-comment" > # Returns display surface.< / span >
< Surf> = pg.Surface((width, height) [, flags]) < span class = "hljs-comment" > # New RGB surface. RGBA if `flags=pg.SRCALPHA`.< / span >
< Surf> = pg.Surface((width, height), flags=< span class = "hljs-number" > 0< / span > ) < span class = "hljs-comment" > # New RGB surface. RGBA if `flags=pg.SRCALPHA`.< / span >
< Surf> = pg.image.load(< span class = "hljs-string" > '< path> '< / span > ) < span class = "hljs-comment" > # Loads the image. Format depends on source.< / span >
< Surf> = < Surf> .subsurface(< Rect> ) < span class = "hljs-comment" > # Returns a subsurface.< / span >
< / code > < / pre > < / div >
@ -3007,7 +3007,7 @@ $ pyinstaller script.py --add-data '<path>:.' <span class="hljs-comment">
< footer >
< aside > October 8 , 2021< / aside >
< aside > October 13 , 2021< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / footer >