Skip to content

Commit 68d5a9a

Browse files
committed
Threading and Pygame
1 parent fed3afa commit 68d5a9a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ from threading import Thread, RLock, Semaphore, Event, Barrier
20622062
```python
20632063
<lock> = RLock() # Lock that can only be released by the owner.
20642064
<lock>.acquire() # Waits for lock to be available.
2065-
<lock>.release() # Makes the lock available again.
2065+
<lock>.release() # Makes lock available again.
20662066
```
20672067

20682068
#### Or:
@@ -2931,8 +2931,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29312931
### Rectangle
29322932
**Object for storing rectangular coordinates.**
29332933
```python
2934-
<Rect> = pg.Rect(x, y, width, height) # X and y are coordinates of topleft corner.
2935-
<int> = <Rect>.x/y/centerx/centery/# Top, right, bottom, left.
2934+
<Rect> = pg.Rect(x, y, width, height) # Floats get truncated into ints.
2935+
<int> = <Rect>.x/y/centerx/centery/# Top, right, bottom, left. Allows assignments.
29362936
<tup.> = <Rect>.topleft/center/# Topright, bottomright, bottomleft.
29372937
<Rect> = <Rect>.move((x, y)) # Use move_ip() to move in place.
29382938
```

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@
18471847
</ul>
18481848
<div><h3 id="lock">Lock</h3><pre><code class="python language-python hljs">&lt;lock&gt; = RLock() <span class="hljs-comment"># Lock that can only be released by the owner.</span>
18491849
&lt;lock&gt;.acquire() <span class="hljs-comment"># Waits for lock to be available.</span>
1850-
&lt;lock&gt;.release() <span class="hljs-comment"># Makes the lock available again.</span>
1850+
&lt;lock&gt;.release() <span class="hljs-comment"># Makes lock available again.</span>
18511851
</code></pre></div>
18521852

18531853
<div><h4 id="or-1">Or:</h4><pre><code class="python language-python hljs">lock = RLock()
@@ -2520,8 +2520,8 @@
25202520
</code></pre></div></div>
25212521

25222522

2523-
<div><h3 id="rectangle">Rectangle</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><code class="python language-python hljs">&lt;Rect&gt; = pg.Rect(x, y, width, height) <span class="hljs-comment"># X and y are coordinates of topleft corner.</span>
2524-
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery/… <span class="hljs-comment"># Top, right, bottom, left.</span>
2523+
<div><h3 id="rectangle">Rectangle</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><code class="python language-python hljs">&lt;Rect&gt; = pg.Rect(x, y, width, height) <span class="hljs-comment"># Floats get truncated into ints.</span>
2524+
&lt;int&gt; = &lt;Rect&gt;.x/y/centerx/centery/… <span class="hljs-comment"># Top, right, bottom, left. Allows assignments.</span>
25252525
&lt;tup.&gt; = &lt;Rect&gt;.topleft/center/… <span class="hljs-comment"># Topright, bottomright, bottomleft.</span>
25262526
&lt;Rect&gt; = &lt;Rect&gt;.move((x, y)) <span class="hljs-comment"># Use move_ip() to move in place.</span>
25272527
</code></pre></div>

0 commit comments

Comments
 (0)