add Python implementation of GetPaths (fix issue #1944)

This commit is contained in:
DietmarSchwertberger
2024-10-12 15:06:47 +02:00
parent b2733b5814
commit a49f199215

View File

@@ -39,6 +39,16 @@ def run():
module.find('wxDirSelectorPromptStr').ignore()
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;
"""
)
c = module.find('wxDirSelector')
c.mustHaveApp()