Hi,

I am writing a software that needs a lot of ComboBoxes. I am using
python-gtk2 2.6.2 with gtk 2.6.7.

I have an entry window with 4 comboboxes. I must update the liststore
associated with those combos everytime I open the window, as the lists
can be modified in other parts of the program.

To achieve this, I call a function every time the window gets opened
that does

model.clear()
model.insert_before(blah blah)

It works well for the first 4-5 times I open the window, then it gets
slooooooow. After 15-20 times, it takes about 5 seconds (on a Centrino
1400) to show up the list of options when I click the ComboBox.

I think I will (temporarily) solve the problem destroying and recreating
the model everytime the window gets opened, but I wish to know if this
is a known bug or if there is a "better way" of doing this kind of
things.

Thanks. Bye.

-- 
Alessandro Pellizzari


_______________________________________________
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