472,791 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 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 2020
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.