X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e4e25d5503d0ee4d466f1f979a8007d3b7975f8..0cf04a425fe081365237c97fec168b77ea6efd03:/wxPython/src/_pen.i?ds=inline diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index fc37c53409..577c0a936e 100644 --- a/wxPython/src/_pen.i +++ b/wxPython/src/_pen.i @@ -29,6 +29,8 @@ %newgroup +MustHaveApp(wxPen); + class wxPen : public wxGDIObject { public: wxPen(wxColour& colour, int width=1, int style=wxSOLID); @@ -40,7 +42,8 @@ public: int GetStyle(); int GetWidth(); - bool Ok(); + bool IsOk(); + %pythoncode { Ok = IsOk } void SetCap(int cap_style); void SetColour(wxColour& colour); @@ -54,16 +57,19 @@ public: PyObject* GetDashes() { wxDash* dashes; int count = self->GetDashes(&dashes); - bool blocked = wxPyBeginBlockThreads(); + wxPyBlock_t blocked = wxPyBeginBlockThreads(); PyObject* retval = PyList_New(0); - for (int x=0; x