First time here? Check out the FAQ!
1

Wing101 and Tcl/Tk

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?

Sanjeev Joshi's avatar
11
Sanjeev Joshi
asked 2017-05-02 13:21:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 10:18:28 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

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.

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).

Wingware Support's avatar
4k
Wingware Support
answered 2017-05-02 13:42:00 -0500
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 07:13:50 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer