This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amcnerney13
Recipients amcnerney13, ned.deily, ronaldoussoren
Date 2011-02-01.02:07:06
SpamBayes Score 0.00039493947
Marked as misclassified No
Message-id <1296526026.86.0.744511145615.issue11075@psf.upfronthosting.co.za>
In-reply-to
Content
It may be because the program that I am trying to run automatically exits, I do not know yet how to keep a turtle program running (waiting for input). The only way I know so far is to use the function "exitonclick()," but when using that, my I cannot use any other mouseevents in my program. (Help?) Anyways, an example of a script that will cause turtle to hang/crash is even such a simple one as:
"
import turtle as t
def flfr():
    t.fd(10)
    t.lt(45)
    t.fd(10)
    t.rt(45)
t.onkey(flfr, "Up")
t.listen()
"
Is there anyway to keep a turtle program running, waiting for user interaction without using the exitonclick() function? Also, thank you for pointing out the maintenance svn, I did an svn checkout, compiled, and installed it and it fixed other problems that I was having with Python 2.7.1 ActiveState Tcl/Tk 8.5.9 (such as hanging when running a program when the shell isn't open.)

Another quick question that you don't have to answer: is there anyway to ignore interaction (keystrokes, mouseclicks) while an onkey function is activated? Like if I make a function that takes 10 seconds to complete, can I ignore all interaction while that function is being run?

Thank you for your time.
History
Date User Action Args
2011-02-01 02:07:06amcnerney13setrecipients: + amcnerney13, ronaldoussoren, ned.deily
2011-02-01 02:07:06amcnerney13setmessageid: <1296526026.86.0.744511145615.issue11075@psf.upfronthosting.co.za>
2011-02-01 02:07:06amcnerney13linkissue11075 messages
2011-02-01 02:07:06amcnerney13create