[ACCEPTED]-Dynamically change the choices in a wx.ComboBox()-wxwidgets
Accepted answer
wx.ComboBox derives from wx.ItemContainer, which has methods for Appending, Clearing, Inserting and 4 Deleting items, all of these methods are available 3 on wx.ComboBox.
One way to do what you want 2 would be to define the text_return() method 1 as follows:
def text_return(self, event):
self.st.Clear()
self.st.Append('3')
self.st.Append('4')
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.