Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

is there anyway to import tkinter on sage ?

i want to organise my work on pretty interface using tkinter module, but it seems that is not obviously easy to do bcs all time i get error becs of importation of tkinter!!! any one had already deal with this issu, can help i'll be thankful. is there any other tool to build interfaces? this is the msg that i got ImportError Traceback (most recent call last) <ipython-input-5-2602f712d6ec> in <module>() ----> 1 import tkinter

/opt/sagemath-8.6/local/lib/python2.7/site-packages/tkinter/__init__.py in <module>() 3 4 if sys.version_info[0] < 3: ----> 5 from Tkinter import * 6 from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit, 7 _splitdict, _stringify, _support_default_root, _test,

/opt/sagemath-8.6/local/lib/python2.7/lib-tk/Tkinter.py in <module>() 37 # Attempt to configure Tcl/Tk without requiring PATH 38 import FixTk ---> 39 import _tkinter # If this fails your Python may not be configured for Tk 40 tkinter = _tkinter # b/w compat for export 41 TclError = _tkinter.TclError

ImportError: No module named _tkinter

is there anyway to import tkinter on sage ?

i want to organise my work on pretty interface using tkinter module, but it seems that is not obviously easy to do bcs all time i get error becs of importation of tkinter!!! any one had already deal with this issu, can help i'll be thankful. is there any other tool to build interfaces? this is the msg that i got got

 ImportError                               Traceback (most recent call last)

<ipython-input-5-2602f712d6ec> in <module>() ----> 1 import tkinter

/opt/sagemath-8.6/local/lib/python2.7/site-packages/tkinter/__init__.py in <module>() 3 4 if sys.version_info[0] < 3: ----> 5 from Tkinter import * 6 from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit, 7 _splitdict, _stringify, _support_default_root, _test,

/opt/sagemath-8.6/local/lib/python2.7/lib-tk/Tkinter.py in <module>() 37 # Attempt to configure Tcl/Tk without requiring PATH 38 import FixTk ---> 39 import _tkinter # If this fails your Python may not be configured for Tk 40 tkinter = _tkinter # b/w compat for export 41 TclError = _tkinter.TclError

ImportError: No module named _tkinter

is there anyway to import tkinter on sage ?

i want to organise my work on pretty interface using tkinter module, but it seems that is not obviously easy to do bcs all time i get error becs of importation of tkinter!!! any one had already deal with this issu, can help i'll be thankful. is there any other tool to build interfaces? this is the msg that i got

` ImportError Traceback (most recent call last)

<ipython-input-5-2602f712d6ec> in <module>() ----> 1 import tkinter

/opt/sagemath-8.6/local/lib/python2.7/site-packages/tkinter/__init__.py in <module>() 3 4 if sys.version_info[0] < 3: ----> 5 from Tkinter import * 6 from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit, 7 _splitdict, _stringify, _support_default_root, _test,

/opt/sagemath-8.6/local/lib/python2.7/lib-tk/Tkinter.py in <module>() 37 # Attempt to configure Tcl/Tk without requiring PATH 38 import FixTk ---> 39 import _tkinter # If this fails your Python may not be configured for Tk 40 tkinter = _tkinter # b/w compat for export 41 TclError = _tkinter.TclError

ImportError: No module named _tkinter_tkinter`

click to hide/show revision 4
None

is there anyway to import tkinter on sage ?

i want to organise my work on pretty interface using tkinter module, but it seems that is not obviously easy to do bcs all time i get error becs of importation of tkinter!!! any one had already deal with this issu, can help i'll be thankful. is there any other tool to build interfaces? this is the msg that i got

 `   ImportError                               Traceback (most recent call last)
<ipython-input-5-2602f712d6ec> in <module>()
----> 1 import tkinter

tkinter /opt/sagemath-8.6/local/lib/python2.7/site-packages/tkinter/__init__.py in <module>() 3 4 if sys.version_info[0] < 3: ----> 5 from Tkinter import * 6 from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit, 7 _splitdict, _stringify, _support_default_root, _test,

_test, /opt/sagemath-8.6/local/lib/python2.7/lib-tk/Tkinter.py in <module>() 37 # Attempt to configure Tcl/Tk without requiring PATH 38 import FixTk ---> 39 import _tkinter # If this fails your Python may not be configured for Tk 40 tkinter = _tkinter # b/w compat for export 41 TclError = _tkinter.TclError

_tkinter.TclError ImportError: No module named _tkinter`

_tkinter`

is there anyway to import tkinter on sage ?

i want to organise my work on pretty interface using tkinter module, but it seems that is not obviously easy to do bcs all time i get error becs of importation of tkinter!!! any one had already deal with this issu, can help i'll be thankful. is there any other tool to build interfaces? this is the msg that i got

  `   ImportError                               Traceback (most recent call last)
<ipython-input-5-2602f712d6ec> in <module>()
----> 1 import tkinter

/opt/sagemath-8.6/local/lib/python2.7/site-packages/tkinter/__init__.py in <module>()
      3 
      4 if sys.version_info[0] < 3:
----> 5     from Tkinter import *
      6     from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit,
      7                          _splitdict, _stringify, _support_default_root, _test,

/opt/sagemath-8.6/local/lib/python2.7/lib-tk/Tkinter.py in <module>()
     37     # Attempt to configure Tcl/Tk without requiring PATH
     38     import FixTk
---> 39 import _tkinter # If this fails your Python may not be configured for Tk
     40 tkinter = _tkinter # b/w compat for export
     41 TclError = _tkinter.TclError

ImportError: No module named _tkinter`