Comment 5 for bug 75327

Revision history for this message
berna1111 (berna1111) wrote :

Sorry to disturb with newby questions, but I've Ubuntu 7.10 Gutsy Gibbon (*) on a Toshiba Satellite A30-303, with Python 2.5 and PyGTK 2.0 properly installed (sudo apt-get ...) and when I try to create an instance on Python of a gtk.window object the interpreter (IDLE 1.2.1) just shuts itself down. I just have to place the last bracket on something like:
>>> hello = HelloWorld()
HelloWorld being a class supposed to create a window with a button through PyGTK, and the interpreter closes, even before I have the time to press 'Enter'...
I don't know if the bug is related, or if I've just screwd up the code somewhere, so I tried the basic examples from the PyGTK tutorial and still got the same thing, over and over.
I've read this thread and found the patch to fix the reported bug, but I don't really understand how to fix the bug with the piece of code given. Am I supposed to place it in the /cvs/gnome/pygtk/codegen/codegen.py? Or on usr/share/pygtk/2.0/? Cause all I've got in the second directory is another directory named 'defs'.
Again, sorry for the newby question and sorry if this ain't the right place to post it.
Attached is the helloworld.py, right from the tutorial.

(*) The first two lines of the Python interpreter are:
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2

I'm wondering if the '(prerelease)' has something to do with the bug...