embray/sage-windows

turtle graphics not installed

Opened this issue · 2 comments

It was pointed out that the Python turtle module, which is used in some tutorials, is not available.

It turns out that the turtle module depends on Tkinter, so it's necessary to install the Cygwin package python-tkinter (Cygwin, like most Linux distributions, keeps the Tkinter module in a separate package so that Python can be installed without Tcl/Tk and all the dependencies that brings in).

One problem is that on Cygwin, Tk also requires an X server (it is, after all, a *nix build of Tk, not the Windows version). So the Sage installer will also need to include a full X server, and start it at the appropriate time for features that depend on it to work.

I assume that if we are running Python3, we need python3-tkinter.
How does one install it? What is the install command and how does it know to install it from the Cygwin site?

In principle you can run apt-cyg install <whatever>; this is only included in the distribution since Sage 8.3 (apt-cyg, that is). However, none of this is supported at the moment (using Tcl/Tk, etc.; I make no guarantees).