From a49f19921548e6f8fabc618771ac19e652cbc787 Mon Sep 17 00:00:00 2001 From: DietmarSchwertberger Date: Sat, 12 Oct 2024 15:06:47 +0200 Subject: [PATCH] add Python implementation of GetPaths (fix issue #1944) --- etg/dirdlg.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etg/dirdlg.py b/etg/dirdlg.py index 09072a60a..8e42922a8 100644 --- a/etg/dirdlg.py +++ b/etg/dirdlg.py @@ -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()