Re: Turtle window not closing

2017-04-23 Thread Peter Otten
ard, but now I am trying to figure out how to make the program wait a > few seconds or wait for the user to press a key before clearing the turtle > window (not closing the window, just clearing it). Is there any way to do > this? I experimented a bit and found the Screen.ontimer() and onke

Re: Turtle window not closing

2017-04-22 Thread Terry Reedy
On 4/22/2017 3:52 AM, Peter Otten wrote: Harshika Varadhan via Python-list wrote: Are you running your script from within IDLE? Try starting it from the command line instead. Like turtle IDLE itself is a program written in tkinter, and the separation between editer and user code is not alwa

Re: Turtle window not closing

2017-04-22 Thread Harshika Varadhan via Python-list
ait a few seconds or wait for the user to press a key before clearing the turtle window (not closing the window, just clearing it). Is there any way to do this? def draw_board(): t = turtle.Turtle() t.speed(0) t.ht() t.up() t.goto(-100, -100) t.down() for i in range(

Re: Turtle window not closing

2017-04-22 Thread Peter Otten
Harshika Varadhan via Python-list wrote: > I am creating a game where the user inputs a coordinate to place their > piece on a chess board. My code then draws the chess board with a turtle > and fills in the squares in with green where the user can place their next > piece. After the user inputs t

Turtle window not closing

2017-04-21 Thread Harshika Varadhan via Python-list
Hi everyone, I am creating a game where the user inputs a coordinate to place their piece on a chess board. My code then draws the chess board with a turtle and fills in the squares in with green where the user can place their next piece. After the user inputs their first coordinate, the turtle