mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-18 01:37:07 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
13 lines
469 B
Python
13 lines
469 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")
|