Beginner trying Python Turtle module
<p>I'm a beginner just trying to mess around with Python. I wrote some very simple code using the Turtle module, but something I can't figure out is why the GUI closes immediately after it's done drawing? </p>

<p>I've tried turtle.getscreen()._root.mainloop(), and the sleep command (which my cmd doesn't recognize), but to no avail. Any thoughts?</p>

<p>Realize this is a trivial question, but people say the best way to understand things is to get in there and do random things :)</p>

<p>Code ( extracted from comment):</p>

<pre><code>from turtle import *
setup()
title("turtle test")
clear()
down()
forward(50)
right(90)
forward(50)
right(90)
forward(50)
right(90)
forward(500)
turtle.getscreen()._root.mainloop()
</code></pre>
