Re: pickling a TreeStore? Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-24 Thread James Henstridge
On 23/10/2003 3:00 AM, Eugene Koontz wrote: I'm in a similar situation that Don Allingham describes in his post Creating a sortable model derived from GenericTreeModel : I have a big TreeStore that takes a long time to load. My proposed solution is to have a compile-time step of pickling the

Re: [pygtk] TextView width depending on maximum number of character per line

2003-10-24 Thread James Henstridge
On 23/10/2003 8:37 AM, Dàvik wrote: Hi! I need a TextView that changes its width depending on the maximum number of characters per line that the user wants it to have. I need that the user be able to configure it to have between a number of characters per line and that it changes its width to

[pygtk] dianewcanvas bindings for python

2003-10-24 Thread matlactli ihuan ome acátl
Hello there!! I'm using dianewcanvas for a simple application written in python. I figured out how to add a canvasview to my app and displays well, but i dont know how to add shapes (Items) in My canvas?? I knew the creator/mantainer of this proyect writes somewhere in this mailing list. Ples

Re: pickling a TreeStore? Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-24 Thread Christian Robottom Reis
On Fri, Oct 24, 2003 at 04:15:57PM +0800, James Henstridge wrote: According to the pickle documentation ( http://python.org/doc/2.3.1/lib/node64.html ), objects can be pickled if they are at the top level of a module. Would it be possible for me to hack the pygtk sources to put TreeStore at

Re: pickling a TreeStore? was Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-24 Thread Eugene Koontz
Thanks to both Christian and James for your insights. Since it's not possible to pickle the TreeStore, I think perhaps I'll experiment with separating the entire mass of the data from the TreeStore. I'll use a dictionary (or a similar data structure that's suitable for sorting and searching)