Currently, I am using wxComboBoxes that need their values refreshed
periodically. I basically do the following:
combo.Clear()
for label in myList:
combo.Append(item)
This, of course, works as expected and refreshes the list. However, there
is an odd refresh happening on the screen. It's as if you see each item
being deleted from the combo, then the new items inserted. Is there some
way to turn off the painting of the combo box while the Append()'s are
taking place?
I am using wxGTK 2.2.9 on Debian against Python 2.2. I have also tested
against 2.3.3.2.
Currently, I am using wxComboBoxes that need their values refreshed
periodically. I basically do the following:
combo.Clear()
for label in myList: combo.Append(item)
This, of course, works as expected and refreshes the list. However, there
is an odd refresh happening on the screen. It's as if you see each item
being deleted from the combo, then the new items inserted. Is there some
way to turn off the painting of the combo box while the Append()'s are
taking place?
I am using wxGTK 2.2.9 on Debian against Python 2.2. I have also tested
against 2.3.3.2.
I don't think it was in 2.2.x but you could try wrapping your update in calls to the Freeze/Thaw methods.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!