mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
add Python implementation of GetPaths (fix issue #1944)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user