X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09f3d4e679f5742c54fb062ede846b77606a9c5b..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/wxPython/src/cmndlgs.i?ds=sidebyside diff --git a/wxPython/src/cmndlgs.i b/wxPython/src/cmndlgs.i index 08c8a37919..402f5b7c1d 100644 --- a/wxPython/src/cmndlgs.i +++ b/wxPython/src/cmndlgs.i @@ -18,6 +18,7 @@ #include #include #include +#include %} //---------------------------------------------------------------------- @@ -30,6 +31,7 @@ %import misc.i %import gdi.i %import windows.i +%import events.i %import frames.i %pragma(python) code = "import wx" @@ -54,6 +56,8 @@ class wxColourDialog : public wxDialog { public: wxColourDialog(wxWindow* parent, wxColourData* data = NULL); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + wxColourData& GetColourData(); int ShowModal(); }; @@ -69,6 +73,8 @@ public: long style = 0, const wxPoint& pos = wxDefaultPosition); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + wxString GetPath(); wxString GetMessage(); long GetStyle(); @@ -89,6 +95,8 @@ public: long style = 0, const wxPoint& pos = wxDefaultPosition); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + wxString GetDirectory(); wxString GetFilename(); int GetFilterIndex(); @@ -109,25 +117,13 @@ public: PyObject* GetFilenames() { wxArrayString arr; self->GetFilenames(arr); - size_t count = arr.GetCount(); - PyObject* listObj = PyList_New(0); - for(size_t x=0; xGetPaths(arr); - size_t count = arr.GetCount(); - PyObject* listObj = PyList_New(0); - for(size_t x=0; x