开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜