X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e4e25d5503d0ee4d466f1f979a8007d3b7975f8..ae5aafdc71da118d56fcd9f2d9252e94acb8d05c:/wxPython/src/_pen.i?ds=sidebyside diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index fc37c53409..5f9f7a278e 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); @@ -56,8 +58,11 @@ public: int count = self->GetDashes(&dashes); bool blocked = wxPyBeginBlockThreads(); PyObject* retval = PyList_New(0); - for (int x=0; x