X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d394edcac8c94d0ac1c1025f5b43bb372f8eb905..4bb081fd23dc73d1bc005f67649c9eb0d244dc14:/wxPython/src/gdi.i diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index b598610491..fa57df3de3 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -423,9 +423,21 @@ public: void SetStyle(int style); void SetWidth(int width); - // **** This one needs to return a list of ints (wxDash) - //int GetDashes(wxDash **dashes); + void SetDashes(int LCOUNT, wxDash* choices); + //int GetDashes(wxDash **dashes); + %addmethods { + PyObject* GetDashes() { + wxDash* dashes; + int count = self->GetDashes(&dashes); + wxPyBeginBlockThreads(); + PyObject* retval = PyList_New(0); + for (int x=0; x