[newbie] struggling wth tkinter
Jean Dubois
jeandubois314 at gmail.com
Sun Dec 8 10:53:47 EST 2013
Op zondag 8 december 2013 15:16:25 UTC+1 schreef Dave Angel:
> On Sat, 7 Dec 2013 23:45:06 -0800 (PST), Jean Dubois
>
> <jeandubois314 at gmail.com> wrote:
>
> > This is what I get:
>
> > Traceback (most recent call last):
>
> > File "./feet2meters.py", line 2, in <module>
>
> > from tkinter import *
>
> > File "/home/jean/tkinter.py", line 2, in <module>
>
> > import Tkinter as tk
>
> > ImportError: No module named Tkinter
>
>
>
> Regardless of your other fixes, you should rename the bogus file:
>
>
>
> /home/jean/tkinter.py
>
>
>
> You very seldom want to have files that can shadow system modules.
>
>
>
> --
>
> DaveA
Thank you Dave, this made it work under python3 too. I also had to remove tkinter.pyc
kind regards,
jean
More information about the Python-list
mailing list