wxPython: Update wx.ListBox list
I have a wx.ListB开发者_JAVA百科ox 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.
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.
精彩评论