On Wednesday, 8 January 2020 13:47:17 UTC, slelievre wrote:
>
>
>
> Le mardi 7 janvier 2020 10:15:08 UTC+1, [email protected] a écrit :
>>
>> On Mon, Jan 06, 2020 at 05:54:02PM -0800, 'Ricksme' via sage-support 
>> wrote: 
>> > I am about to build sage 9.0 on opensuse Leap 15.1 and notice that 
>> import 
>> > Tkinter works in python 2.7.14 but that import tkinter is required for 
>> > python 3.6.9 (Leap 15.1 installation). The sage 9.0 installation guide 
>> > specifies the (uppercase T) Tkinter which applies to python 2 in my 
>> > installation but sage 9.0 is built with python 3. Is this going to be 
>> an 
>> > issue and does someone know about this? 
>>
>> That Tkinter -> tkinter change at py2 -> py3 could have been something 
>> we overlooked, as probably noone involved in Sage releases has any idea 
>> about tkinter. 
>>
>
> We should indeed adapt that section of the "install from source" page at
>
> https://doc.sagemath.org/html/en/installation/source.html
>
> I guess that to check support for Tk interface it's enough to try
>
>     import _tkinter
>
> In Python 2, import Tkinter will import _tkinter.
> In Python 3, import tkinter will import _tkinter.
>

import _tkinter works for both 2 and 3.
import Tkinter for python 2  OR import tkinter for python 3

I haven't checked whether there is code within the sage-9.0 installation 
that uses this import statement. If there is, presumably the correct 
version of import tkinter is employed.

Rick

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5f1d7887-f97f-4611-8c50-bccc8ab79b94%40googlegroups.com.

Reply via email to