From a17558cccd12398e5d5a19bfcbc8ae740add9da8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 20 Jul 2018 17:00:38 -0700 Subject: [PATCH] Add wx.Listbook.GetListView (cherry picked from commit 9577c312fdb2d403b2acd0e8f1ae1fcf3a6549cf) --- CHANGES.rst | 3 ++- etg/listbook.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 )