Python and Tk: Error on Memory Access

M

Markus Franke

Hi,

i have a problem using Tk with python. Here is a simple script:

import Tkinter
root=Tkinter.Tk()
button=Tkinter.Button(root,text="Click")
button.pack()

I can see a Window with a Button in it. But the problem now
is that every time I enter the Button with the Mouse-Arrow,
the Program stops with a "Failure on Memory Access"...
in German "Speicherzugriffsverletzung".

I have tried several versions of python, Tk and Tkinter but
without success.

My System:

Red Hat 9(Severn), Kernel 2.4.21-20.1.2024.2.1.nptl
python 2.2.3 / I tried also version 2.3.2
Tk-8.3.5-88
Tkinter 2.2.3-26

Hope anyone can help me.

Thanx,

Markus
 
M

Martin v. Loewis

Markus said:
I have tried several versions of python, Tk and Tkinter but
without success.

My System:

Red Hat 9(Severn)

On Redhat 9, you should either use the packages that the
system vendor provides, or you should compile Python yourself.
Installing a foreignly-built Python is likely to give problems
with Tk.

Regards,
Martin
 
M

Markus Franke

Hi,

On Redhat 9, you should either use the packages that the
system vendor provides, or you should compile Python yourself.
Installing a foreignly-built Python is likely to give problems
with Tk.

I have already installed the packages for Red Hat 9, but the Error
still comes. Could this be perhaps a problem of my Developer-Kernel.

Greets
Markus Franke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top