Gabriel Ščerbák
Gabriel Ščerbák

Reputation: 18560

Why ActivePython freezes after I use the turtle module?

I've installed ActivePython 3.1 and ran IDLE with -n parameter as required by the turtle module in documentation. However when I try to use it with call such as turtle.postion(), new windows is opened (with Tk icon), which freezes and shows nothing. What could be wrong?

Upvotes: 2

Views: 916

Answers (2)

Gabriel Ščerbák
Gabriel Ščerbák

Reputation: 18560

Partially resolved by not running it in IDLE, I execute it as a python script and wait for input to see what is drawn.

Upvotes: 0

Donal Fellows
Donal Fellows

Reputation: 137557

The immediate cause of the freeze is that the Tk event loop is not being serviced. Without that, Tk windows do not display or update correctly (all GUI toolkits are event based, but Tk is particularly so). Unfortunately, I don't know Python's Tk binding or IDLE nearly well enough to be able to say what that is caused by.

Upvotes: 2

Related Questions