From 01c40efd86ff6a3d1c0e123308cb516c02bbe671 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 12 Jun 2017 13:39:18 -0700 Subject: [PATCH] Add accessors for the internal widgets in the EditableListBox --- etg/editlbox.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/etg/editlbox.py b/etg/editlbox.py index 6dd767b8..c70eb69c 100644 --- a/etg/editlbox.py +++ b/etg/editlbox.py @@ -51,6 +51,31 @@ def run(): factory=True) + # These are not in the documented C++ API. Should they be? + c.addCppMethod('wxListCtrl*', 'GetListCtrl', '()', + doc="Returns a reference to the listctrl used in the EditableListBox.", + body="return self->GetListCtrl();") + + c.addCppMethod('wxBitmapButton*', 'GetDelButton', '()', + doc="Returns a reference to the delete button used in the EditableListBox.", + body="return self->GetDelButton();") + + c.addCppMethod('wxBitmapButton*', 'GetNewButton', '()', + doc="Returns a reference to the new button used in the EditableListBox.", + body="return self->GetNewButton();") + + c.addCppMethod('wxBitmapButton*', 'GetUpButton', '()', + doc="Returns a reference to the up button used in the EditableListBox.", + body="return self->GetUpButton();") + + c.addCppMethod('wxBitmapButton*', 'GetDownButton', '()', + doc="Returns a reference to the down button used in the EditableListBox.", + body="return self->GetDownButton();") + + c.addCppMethod('wxBitmapButton*', 'GetEditButton', '()', + doc="Returns a reference to the edit button used in the EditableListBox.", + body="return self->GetEditButton();") + #----------------------------------------------------------------- tools.doCommonTweaks(module) tools.runGenerators(module)