Re: [pygtk] push huge array into liststore

2010-07-13 Thread Gerald Britton
2010/7/12 Gerald Britton : > First off, why are you using an array?  Not that it's bad or anything, > but how does it help you where a simple list would not? > > Second, what would be nice is if liststore.insert would take an > interable.  Baring that you could simplify a little like this: > > keys

Re: [pygtk] pyobject missing G_MAXUINT

2010-07-13 Thread Paolo Losi
Tomeu, I tried with pygobject 2.14.2 and it worked (I originally skipped it since "make egg" doesn't work with it). Thanks! Paolo On Tue, Jul 13, 2010 at 4:37 PM, Tomeu Vizoso wrote: > On Tue, Jul 13, 2010 at 15:45, Paolo Losi wrote: >> Hi all, >> >> I'm trying to compile pygobject 2.10.1 on

Re: [pygtk] pyobject missing G_MAXUINT

2010-07-13 Thread Tomeu Vizoso
On Tue, Jul 13, 2010 at 15:45, Paolo Losi wrote: > Hi all, > > I'm trying to compile pygobject 2.10.1 on Centos 5.5. > I need to recompile since we're using a "custom" python 2.5. > 2.10.1 is the most recent version of pygobject that supports the version > of glib shipped with centos 5.5. > > I di

Re: [pygtk] push huge array into liststore

2010-07-13 Thread Gerald Britton
On Mon, Jul 12, 2010 at 9:09 PM, Tim Evans wrote: > On 2010-07-13 3:48, Cornelius Kölbel wrote: >> Dear list, >> >> I got an array of dictionaries, that I want to add to a GTKListStore, >> that is displayed an a treeview. >> >> This is very slow. I already replaced the liststore.append by >> lists

[pygtk] pyobject missing G_MAXUINT

2010-07-13 Thread Paolo Losi
Hi all, I'm trying to compile pygobject 2.10.1 on Centos 5.5. I need to recompile since we're using a "custom" python 2.5. 2.10.1 is the most recent version of pygobject that supports the version of glib shipped with centos 5.5. I did successfully compiled and installed: ./configure make make egg

Re: [pygtk] push huge array into liststore

2010-07-13 Thread Zyphos
Hi, a solution is written into the FAQ: http://faq.pygtk.org/index.py?req=show&file=faq13.043.htp treeview.freeze_child_notify() treeview.set_model(None) # Add rows to the model # ... treeview.set_model(model) treeview.thaw_child_notify() Regards, Zyphos Tim Evans a écrit : > On 2010-07

Re: [pygtk] Drag and drop (DND) of gtk.Notebook tab to another widget [SOLVED]

2010-07-13 Thread Zyphos
Because there it seems that there is no source of this on internet, here is a way to achieve this. This is a hack, we are going to override the data parameter with the page number instead of the C pointer to the widget. ===Code.py=== notebook = gtk.notebook() drag_page_number = 0 # global var not