<div><h3id="lock">Lock</h3><pre><codeclass="python language-python hljs"><lock> = RLock() <spanclass="hljs-comment"># Lock that can only be released by the owner.</span>
<lock>.acquire() <spanclass="hljs-comment"># Waits for lock to be available.</span>
<lock>.release() <spanclass="hljs-comment"># Makes the lock available again.</span>
<lock>.release() <spanclass="hljs-comment"># Makes lock available again.</span>
@ -2520,8 +2520,8 @@ rect = pg.Rect(<span class="hljs-number">240</span>, <span class="hljs-number">2
</code></pre></div></div>
<div><h3id="rectangle">Rectangle</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><codeclass="python language-python hljs"><Rect> = pg.Rect(x, y, width, height) <spanclass="hljs-comment"># X and y are coordinates of topleft corner.</span>
<div><h3id="rectangle">Rectangle</h3><p><strong>Object for storing rectangular coordinates.</strong></p><pre><codeclass="python language-python hljs"><Rect> = pg.Rect(x, y, width, height) <spanclass="hljs-comment"># Floats get truncated into ints.</span>