mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-17 09:17:14 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
13 lines
488 B
Python
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")
|