Thomas Mills Hinkle wrote:

On Sun, 5 Dec 2004 17:13:17 -0500 Thomas Mills Hinkle
<[EMAIL PROTECTED]> wrote:



John -- I'd meant to cc this to the list initially. I still haven't
succeeded in replicating the behavior in a smaller example, but I have
confirmed that this is unique to pygtk 2.5 (I have another box with
pygtk 2.4 where the problem does not occur). I'll post some decent
example code as soon as I can replicate the behavior.



And here it is -- I finally tracked it down. The slowdown in appending to a list store only occurs when the liststore is attached to a ComboBox with set_wrap_width() set to something other than one. And it only occurs with pygtk 2.5. Here's a bit of code to demonstrate the bug.



I see equally bad performance with both PyGTK 2.5 and PyGTK 2.4. The ComboBox widget has terrible performance in laying out a large number of menuitems in a grid which is what happens when the wrap width is greater than 0. Even a wrap width of 1 has poor performance. IMO this is a bug in GTK+. Unfortunately I don't think that there is a workaround to this problem. The code that lays out the menuitems needs to be rewritten.

John
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to