Merge pull request #392 from RobinD42/fix-issue389

Add accessors for the internal widgets in the EditableListBox
This commit is contained in:
Robin Dunn
2017-06-14 17:56:04 -07:00
committed by GitHub

View File

@@ -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)