diff --git a/CHANGES.rst b/CHANGES.rst index 65d3b0e9..56266104 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 diff --git a/etg/listbook.py b/etg/listbook.py index 9e5fa9c6..ea21134d 100644 --- a/etg/listbook.py +++ b/etg/listbook.py @@ -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 )