[pygtk] pyGtk segfault comparing gtk.Image with 0

Ralph Sleigh ralph.sleigh at gmail.com
Sun Oct 18 00:08:50 WST 2009


Hey

The following code is getting me a segfault (found by mistake on my
part, meant to compare with another attribute):

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pygtk
pygtk.require('2.0')
import gtk

class myImage(gtk.Image):
    def __init__(self):
      return

image = myImage()

if(image.parent == 0):
    print image


Current Ubuntu 9.04, python2.6.2-0ubuntu1, python-gtk2 2.14.1ubuntu1

It's silly code I know, but a more friendly error would be nice.

-Ralph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20091017/5c45f2b9/attachment.pgp 


More information about the pygtk mailing list