Add wx.Listbook.GetListView

(cherry picked from commit 9577c312fd)
This commit is contained in:
Robin Dunn
2018-07-20 17:00:38 -07:00
parent 3b0b062501
commit a17558cccd
2 changed files with 6 additions and 1 deletions

View File

@@ -67,7 +67,8 @@ Changes in this release include the following:
* Fix the object ownership transfer for wx.Menu.Insert() (#931)
* Added wx.Treebook.GetTreeCtrl and wx.Choicebook.GetChoiceCtrl. (#918)
* Added wx.Treebook.GetTreeCtrl, wx.Listbook.GetListView and
wx.Choicebook.GetChoiceCtrl. (#918)
* Removed the wx.BookCtrlBase.RemovePage workaround as it was causing problems
and doesn't seem to be necessary any more. The wxWidgets assertions are catching

View File

@@ -38,6 +38,10 @@ def run():
tools.fixWindowClass(c)
tools.fixBookctrlClass(c)
c.addCppMethod('wxListView*', 'GetListView', '()',
doc="Returns the list control used for selecting pages.",
body="return(self->GetListView());")
module.addPyCode("""\
EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_LISTBOOK_PAGE_CHANGED, 1 )
EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_LISTBOOK_PAGE_CHANGING, 1 )