Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/ComboCtrl.2.py
2012-06-13 20:00:47 +00:00

13 lines
488 B
Python

comboCtrl = wx.ComboCtrl(self, wx.ID_ANY, "")
popupCtrl = wx.ListViewComboPopup()
# It is important to call SetPopupControl() as soon as possible
comboCtrl.SetPopupControl(popupCtrl)
# Populate using wx.ListView methods
popupCtrl.InsertItem(popupCtrl.GetItemCount(), "First Item")
popupCtrl.InsertItem(popupCtrl.GetItemCount(), "Second Item")
popupCtrl.InsertItem(popupCtrl.GetItemCount(), "Third Item")