Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/ComboCtrl.2.py
Andrea Gavana fc5b4a31ca Phoenix:
- Add support for `wx.adv.OwnerDrawnComboBox` and `wx.ComboCtrl` in the documentation building process. Add the appropriate samples as well (and wonder why the sample in `wx.ComboCtrl` doesn't get properly highlighted...).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-06 19:36:04 +00:00

13 lines
500 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")