468,168 Members | 1,626 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,168 developers. It's quick & easy.

HELP: Python & Tkinter ?

Hi all,

Have just installed Fedora 3 and wish also want to give programming with
Python a go. I wish to develop GUI interfaces and believe that 'Tkinter'
is the way to go.

After installing Python frpm the distro CD I can't use the 'from Tkinter
import *' command. When I try, I get the error message below:

ImportError: No module named Tkinter

So from that I assume I need to install Tkinter ?
Should I also find this on the CD ? Is it known as another name as looking
on the CD I don't seem to find anything relating to Tkinter.

Thanks in advance.

Pete

Jul 18 '05 #1
4 1831
On Mon, 07 Mar 2005 18:19:16 +1000, rumours say that PGMoscatt
<pg*******@optushome.com.au> might have written:
Hi all,

Have just installed Fedora 3 and wish also want to give programming with
Python a go. I wish to develop GUI interfaces and believe that 'Tkinter'
is the way to go.


[snip: import Tkinter fails, probably due to missing package]

Perhaps this page helps:

http://www.python.org/2.4/rpms.html
Otherwise this would show up anything in the cd:

$ find /mnt/cdrom -name \*kinter\* -print

(/mnt/cdrom or whatever the name of the cd mounting directory in Fedora 3 is)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
Jul 18 '05 #2
"PGMoscatt" wrote:
Have just installed Fedora 3 and wish also want to give programming with
Python a go. I wish to develop GUI interfaces and believe that 'Tkinter'
is the way to go.

After installing Python frpm the distro CD I can't use the 'from Tkinter
import *' command. When I try, I get the error message below:

ImportError: No module named Tkinter

So from that I assume I need to install Tkinter ?
Should I also find this on the CD ? Is it known as another name as looking
on the CD I don't seem to find anything relating to Tkinter.


according to

http://tkinter.unpythonic.net/wiki/H...tall_20Tkinter

this should do the trick:

yum install tkinter

</F>

Jul 18 '05 #3
Fredrik Lundh wrote:
"PGMoscatt" wrote:
Have just installed Fedora 3 and wish also want to give programming with
Python a go. I wish to develop GUI interfaces and believe that 'Tkinter'
is the way to go.

After installing Python frpm the distro CD I can't use the 'from Tkinter
import *' command. When I try, I get the error message below:

ImportError: No module named Tkinter

So from that I assume I need to install Tkinter ?
Should I also find this on the CD ? Is it known as another name as
looking on the CD I don't seem to find anything relating to Tkinter.


according to

http://tkinter.unpythonic.net/wiki/H...tall_20Tkinter

this should do the trick:

yum install tkinter

</F>


Thanks Fredrik, yep, that did the trick. Never seen this YUM thing but it's
pretty trick.

Pete

Jul 18 '05 #4
Pete wrote:
Never seen this YUM thing but it's pretty trick.


more here:

http://linux.duke.edu/projects/yum/

</F>

Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Logan | last post: by
7 posts views Thread by John Slimick | last post: by
3 posts views Thread by Thomas Ploch | last post: by
7 posts views Thread by Protected | last post: by
8 posts views Thread by karthikbalaguru | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.