[newbie] struggling wth tkinter
Cousin Stanley
cousinstanley at gmail.com
Sat Dec 7 13:23:30 EST 2013
> ....
> The only thing I see when running it is a little popup
> with "Click mouse here to quit" which works as expected
> but always shows the following error-message.
This seems to be left over from an earlier post
where you were binding a mouse event to a tk label
Did you create a new file ?
> However the "main" window which should let you enter the
> numbers is not shown.
>
> This is the quit error message:
> Traceback (most recent call last):
> File "./feet2meters.py", line 3, in <module>
> from tkinter import ttk
> ImportError: cannot import name ttk
>
> This is the code:
> ....
If I copy/paste your code as posted
into a new file named ftom.py
and change the she-bang line
as follows ....
#!/usr/bin/env python3
Then from the command line ....
python3 ftom.py
Your code runs as expected
using python 3.2.3 ....
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
More information about the Python-list
mailing list