[pygtk] Fwd: ComboBox set_wrap_width performance issue

Konstantinos Poulios logari81 at googlemail.com
Sun Jun 21 04:49:00 WST 2009


hi!

According to this source
http://www.pygtk.org/pygtk2tutorial/sec-ComboBoxAndComboboxEntry.html
there is a performance limitation for the set_wrap_width method of the
combobox widget:

>With a large number of items, say more than 50, the use of the
>set_wrap_width() method will have poor performance because of the
>computation for the grid layout. To get a feel for the affect modify the
>comboboxwrap.py<http://www.pygtk.org/pygtk2tutorial/examples/comboboxwrap.py>program line 18 to display 150 items.

Is there any workaround about this?

Shouldn't it be reported to gtk-developers  as a bug? A dialog with 8 such
combobox's with ~50 items each becomes unacceptably slow to load.

Kind Regards

Kostas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090620/cbb551a2/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 2570 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20090620/cbb551a2/attachment.py 


More information about the pygtk mailing list