开发者

wxPython: Update wx.ListBox list

开发者 https://www.devze.com 2022-12-11 05:00 出处:网络
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

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

精彩评论

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