[pygtk] Inconsistent format for "path" in TreeView callbacks
Neil Muller
drnlmuller+gtk at gmail.com
Sat May 7 03:24:02 WST 2011
On 6 May 2011 21:07, Jason Heeris <jason.heeris at gmail.com> wrote:
> I have an object that refers to a numpy array of several hundred data
> points, and a few fit parameters and flags. I append the fit
> parameters to the ListStore, and map the object to the path of the new
> row so I can get back the data points, for use upon row activation (or
> cell toggle).
>
> While we've been discussing this, I've been poring over the pygtk docs
> some more and think I see what I should be doing: I could store the
> object itself in the ListStore as well, and simply not add a
> TreeViewColumn for it in the TreeView. Then I can access it directly
> upon row activation, etc. Does this sound reasonable, or is there a
> better way?
Storing the object in a hidden column is fine, and what I assumed you
were doing originally.
--
Neil Muller
drnlmuller at gmail.com
I've got a gmail account. Why haven't I become cool?
More information about the pygtk
mailing list