views:

343

answers:

1

I have a wx.ListBox in a python program, and I wan't to change out the list in it on a wx.Timer update. I have the timer working, I just don't know how to change out the list that it displays.

+2  A: 

Here's an example for modifying a ListBox. Generally, it uses the Append and Clear methods of ListBox. You can call those in your timer handler.

Since ListBox derives from ItemContainer, see more item modification methods here.

Eli Bendersky