Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61254
| From | Cousin Stanley <cousinstanley@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: [newbie] struggling wth tkinter |
| Followup-To | comp.lang.python |
| Date | 2013-12-07 11:23 -0700 |
| Organization | Hohum Acres |
| Message-ID | <l7vp35$dnc$1@dont-email.me> (permalink) |
| References | <40121057-3c98-4f50-84b3-fd320fe2cedc@googlegroups.com> |
Followups directed to: comp.lang.python
> ....
> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 08:52 -0800
Re: [newbie] struggling wth tkinter Dave Angel <davea@davea.name> - 2013-12-07 13:12 -0500
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 23:40 -0800
Re: [newbie] struggling wth tkinter Chris Angelico <rosuav@gmail.com> - 2013-12-08 18:49 +1100
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 01:15 -0800
Re: [newbie] struggling wth tkinter Cousin Stanley <cousinstanley@gmail.com> - 2013-12-07 11:23 -0700
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-07 23:45 -0800
Re: [newbie] struggling wth tkinter Dave Angel <davea@davea.name> - 2013-12-08 09:16 -0500
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 07:53 -0800
Re: [newbie] struggling wth tkinter Cousin Stanley <cousinstanley@gmail.com> - 2013-12-08 07:16 -0700
Re: [newbie] struggling wth tkinter Terry Reedy <tjreedy@udel.edu> - 2013-12-07 16:11 -0500
Re: [newbie] struggling wth tkinter Christian Gollwitzer <auriocus@gmx.de> - 2013-12-08 09:10 +0100
Re: [newbie] struggling wth tkinter Jean Dubois <jeandubois314@gmail.com> - 2013-12-08 00:57 -0800
csiph-web