Wing101 and Tcl/Tk


92
views
0
7 weeks ago by

Here is my current environment:

macOS: 10.12.4

Wing 101 version: 6.0.4-1, which uses Tcl/Tk version 8.5.??

Python and IDLE version: 3.6.1, which uses Tcl/Tk version 8.5.18

Every time I run code in Wing 101 that uses Turtle graphics, it does run in the Turtle window, but I cannot close the window. If I click the red (close window) button, the beachball spins endlessly. I had to 'force quit' it. If I run the same code in IDLE,  the code runs flawlessly and I can close the window after graphics are rendered.

1. It is annoying to 'force quit' the window every time. Why it is happening in Wing 101?

2. How can I tell Wing 101 to use the latest version of Tcl/Tk, 8.6.4, which I have installed?

 

add commentfollow this post modified 7 weeks ago by Wingware Support   • written 7 weeks ago by Sanjeev Joshi  

1 Answer


0
7 weeks ago by

1. It is annoying to 'force quit' the window every time. Why it is happening in Wing 101?

If you're running it in the Python Shell, then restarting the shell should close the window.  You can probably just check on the Auto-restart When Evaluate File in the Python Shell's Options menu so this happens automatically.

If you're debugging, killing the debug process or restarting debug should close the old window.

2. How can I tell Wing 101 to use the latest version of Tcl/Tk, 8.6.4, which I have installed?

 Set the Python Executable in Configure Python from the Source menu to the value of sys.executable in IDLE (do 'import sys' followed by 'sys.executable' to see that).

 

add comment written 7 weeks ago by Wingware Support  
Please log in to add an answer/comment or follow this question.

Share this question


Similar posts:
Search »