[pygtk] Re: segmentation fault

Toshio Kuratomi toshio at tiki-lounge.com
Tue Oct 4 04:28:22 WST 2005


On Sun, 2005-10-02 Daniel Brodie wrote:
> only thing I am really doing is just returning True for some values and
> False for other values in the model. Heck, I even used a random function
> to do the sorting to see if its a problem with my sorting algorithm and
> it still segments. If I always return True or False then everything is
> OK.
On Mon, 2005-10-03 at 10:31 +0300, Daniel Brodie wrote:
> 
> Also, changing the visible func will cause it not to segfault (it dosn't
> segfault in my code but somewhere in the C code). But right now I have
> the visible_func written like this:
>     if model.get_value(iter, COLUMN_ISFILE):
>         return False
>     else:
>         return True

I'd speculate the value of iter is not valid.  Don't know why, though.
If you print iter does it tell you you're getting an iter object?

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20051003/b2f1c34b/attachment.pgp


More information about the pygtk mailing list