Message329708
Apparently the draw() function must call itself via ontimer.
That is not in the docs. But 56 variations later...I just copied
Grant Jenks. Apparently he knows what's what.
And done() must be the last line.
If first omitted, only one draw loop executed, but it quits itself.
With done(), it loops via ontimer().
<pre><code>
def draw():
myDrawCells()
update()
myComputeOneStep()
ontimer(draw, LOOP_TIMER)
setup(BOARD_SIDE, BOARD_SIDE, None, None)
hideturtle()
tracer(False)
clear()
myInitialize()
draw()
done()
</code></pre>
So now alt-Q works in life2DEBUG.py. attached. |
|
Date |
User |
Action |
Args |
2018-11-12 04:18:30 | bmoth | set | recipients:
+ bmoth, ronaldoussoren, gregorlingl, eric.smith, ned.deily, willingc, xtreak |
2018-11-12 04:18:30 | bmoth | set | messageid: <1541996310.13.0.788709270274.issue35211@psf.upfronthosting.co.za> |
2018-11-12 04:18:30 | bmoth | link | issue35211 messages |
2018-11-12 04:18:29 | bmoth | create | |
|