473,410 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

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 2067
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
7
by: John Slimick | last post by:
I want to do a little Tkinter in my 1 credit python practicum, but I am having problems getting everything installed correctly. A sample of the problem is below: ------------------- The...
0
by: Venky | last post by:
When I do 'import Tkinter', I get the ImportError: "libtk.so.0: cannot open shared object file: No such file or directory" I work around the issue by creating a softlink libtk.so.0 in the...
3
by: Thomas Ploch | last post by:
Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python...
13
by: Daniel Fetchinson | last post by:
Was looking at PEP 3108, http://www.python.org/dev/peps/pep-3108/ , Is it just me or others also think that it would be a major loss to remove tkinter from the python core? PEP 3108 starts off...
7
by: Protected | last post by:
Hello. I'm a complete newbie trying to learn Python. I decided to try some Tkinter examples, including the one from the library reference, but they don't seem to do anything! Shouldn't there be,...
4
by: larry | last post by:
Ok I'm a Python noob, been doing OK so far, working on a data conversion program and want to create some character image files from an 8-bit ROM file. Creating the image I've got down, I open...
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.