Pythonize wx.GenericDirCtrl.GetPaths

This commit is contained in:
Robin Dunn
2021-01-16 15:33:57 -08:00
parent 579cde7ea5
commit b1c76cf7bc

View File

@@ -38,6 +38,16 @@ def run():
assert isinstance(c, etgtools.ClassDef)
tools.fixTopLevelWindowClass(c)
c.find('GetPaths').ignore()
c.addCppMethod('wxArrayString*', 'GetPaths', '()', pyArgsString="() -> list",
doc='Returns a list of the currently selected paths.',
body="""\
wxArrayString* paths = new wxArrayString;
self->GetPaths(*paths);
return paths;
"""
)
module.addPyCode("""\
EVT_DIRCTRL_SELECTIONCHANGED = wx.PyEventBinder( wxEVT_DIRCTRL_SELECTIONCHANGED, 1 )
EVT_DIRCTRL_FILEACTIVATED = wx.PyEventBinder( wxEVT_DIRCTRL_FILEACTIVATED, 1 )