Re: gtk_tree_selection_selected_foreach example?



    >> Does someone have a fairly simple example of using
    >> gtk_tree_selection_selected_foreach?  ...

    vishnu> Is this simple enough?
    ...

Yes, thanks.  I guess it supports my suspicion that GtkTreeIters are opaque
goodies and are going to be of no use to a Python programmer, no matter how
attractively wrapped they are.  The problem then becomes what to do with
them.  My selected_foreach function basically looks like your
_selected_helper, but it unwraps a Python function object as part of the
gpointer data and calls that function with something approximating the
model, path, iter and (the rest of the) data.  It looks as if those pointers
are going to be pretty worthless (wrapped or not) and that I should map them
into something more along the lines of what the list was built with
(strings, widgets, whatever), perhaps by calling something like
gtk_model_get first.

-- 
Skip Montanaro (skip pobox com)
http://www.mojam.com/
http://www.musi-cal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]