Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wxPython: Update wx.ListBox list

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.

like image 968
The.Anti.9 Avatar asked Nov 14 '09 06:11

The.Anti.9


1 Answers

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.

like image 171
Eli Bendersky Avatar answered Oct 19 '22 07:10

Eli Bendersky