mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 21:10:06 +01:00
13 lines
485 B
Python
13 lines
485 B
Python
|
|
comboCtrl = wx.ComboCtrl(self, wx.ID_ANY, "")
|
|
|
|
popupCtrl = 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")
|