mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Pythonize wx.GenericDirCtrl.GetPaths
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user