Ask Your Question
0

How to use Tk on sage?

asked 2011-10-16 12:28:49 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I run command "sage -python gui.py". In gui.py import Tkinter. but SAGE response

Traceback (most recent call last):
  File "gui.py", line 1, in <module>
     from Tkinter import*
   File "/usr/local/src/sage-4.7-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module>
     import _tkinter # If this fails your Python may not be configured for Tk
 ImportError: No module named _tkinter

how to way to solve the problem. Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-10-16 16:18:12 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

This wiki page may help, it describes how to get the matplotlib included with Sage to use Tk as the graphics backend:

http://wiki.sagemath.org/sage_matlab

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-10-16 12:28:49 +0200

Seen: 590 times

Last updated: Oct 16 '11