+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxColourDialog_ShowModal(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static void *SwigwxDirDialogTowxDialog(void *ptr) {
+ wxDirDialog *src;
+ wxDialog *dest;
+ src = (wxDirDialog *) ptr;
+ dest = (wxDialog *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxDirDialogTowxPanel(void *ptr) {
+ wxDirDialog *src;
+ wxPanel *dest;
+ src = (wxDirDialog *) ptr;
+ dest = (wxPanel *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxDirDialogTowxWindow(void *ptr) {
+ wxDirDialog *src;
+ wxWindow *dest;
+ src = (wxDirDialog *) ptr;
+ dest = (wxWindow *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxDirDialogTowxEvtHandler(void *ptr) {
+ wxDirDialog *src;
+ wxEvtHandler *dest;
+ src = (wxDirDialog *) ptr;
+ dest = (wxEvtHandler *) src;
+ return (void *) dest;
+}
+
+#define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
+static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ wxDirDialog * _result;
+ wxWindow * _arg0;
+ char * _arg1 = "Choose a directory";
+ char * _arg2 = "";
+ long _arg3 = 0;
+ wxPoint * _arg4 = &wxPyDefaultPosition;
+ char * _argc0 = 0;
+ char * _argc4 = 0;
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s|ssls:new_wxDirDialog",&_argc0,&_arg1,&_arg2,&_arg3,&_argc4))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p.");
+ return NULL;
+ }
+ }
+ if (_argc4) {
+ if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxPoint_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxDirDialog. Expected _wxPoint_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirDialog_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath())
+static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxDirDialog * _arg0;
+ char * _argc0 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s:wxDirDialog_GetPath",&_argc0))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxDirDialog_GetPath(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+}{
+ _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage())
+static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxDirDialog * _arg0;
+ char * _argc0 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s:wxDirDialog_GetMessage",&_argc0))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxDirDialog_GetMessage(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+}{
+ _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle())
+static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ long _result;
+ wxDirDialog * _arg0;
+ char * _argc0 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s:wxDirDialog_GetStyle",&_argc0))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxDirDialog_GetStyle(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0))
+static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ wxDirDialog * _arg0;
+ wxString * _arg1;
+ char * _argc0 = 0;
+ PyObject * _obj1 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"sO:wxDirDialog_SetMessage",&_argc0,&_obj1))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetMessage. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ if (!PyString_Check(_obj1)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxDirDialog_SetMessage(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxDirDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
+static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ wxDirDialog * _arg0;
+ wxString * _arg1;
+ char * _argc0 = 0;
+ PyObject * _obj1 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"sO:wxDirDialog_SetPath",&_argc0,&_obj1))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetPath. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ if (!PyString_Check(_obj1)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxDirDialog_SetPath(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxDirDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
+static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ int _result;
+ wxDirDialog * _arg0;
+ char * _argc0 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s:wxDirDialog_ShowModal",&_argc0))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxDirDialog_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxDirDialog_ShowModal(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);