int ShowModal();
};
+
//----------------------------------------------------------------------
class wxFileDialog : public wxDialog {
PyObject* GetFilenames() {
wxArrayString arr;
self->GetFilenames(arr);
- size_t count = arr.GetCount();
- PyObject* listObj = PyList_New(0);
- for(size_t x=0; x<count; x++) {
- PyObject* name = PyString_FromString(arr[x]);
- PyList_Append(listObj, name);
- }
- return listObj;
+ return wxArrayString2PyList_helper(arr);
}
PyObject* GetPaths() {
wxArrayString arr;
self->GetPaths(arr);
- size_t count = arr.GetCount();
- PyObject* listObj = PyList_New(0);
- for(size_t x=0; x<count; x++) {
- PyObject* name = PyString_FromString(arr[x]);
- PyList_Append(listObj, name);
- }
- return listObj;
+ return wxArrayString2PyList_helper(arr);
}
}
};
int style = 0);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreFindReplaceDialog:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreFindReplaceDialog:val._setOORInfo(val)"
const wxFindReplaceData *GetData();
void SetData(wxFindReplaceData *data);