X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fd4be5571cbbbeaa6c4f7dabcc2ba69fe1e3471..f93cfdc3631b16562e076350c7219c68e4a66eae:/wxPython/src/_pen.i diff --git a/wxPython/src/_pen.i b/wxPython/src/_pen.i index e7d1b7e8eb..911f63d1d0 100644 --- a/wxPython/src/_pen.i +++ b/wxPython/src/_pen.i @@ -54,14 +54,19 @@ public: PyObject* GetDashes() { wxDash* dashes; int count = self->GetDashes(&dashes); - wxPyBeginBlockThreads(); + bool blocked = wxPyBeginBlockThreads(); PyObject* retval = PyList_New(0); for (int x=0; x