]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_timer.i
embedded sample's README updates
[wxWidgets.git] / wxPython / src / _timer.i
index 15f8abe230a2bec27f4b5fb6f494724123e2739c..b613bbc630f10f45268695453b00d2b83ff20380 100644 (file)
@@ -36,10 +36,10 @@ enum {
 
 void wxPyTimer::Notify() {
     bool found;
-    wxPyBeginBlockThreads();
+    bool blocked = wxPyBeginBlockThreads();
     if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
         wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
-    wxPyEndBlockThreads();
+    wxPyEndBlockThreads(blocked);
     if (! found)
         wxTimer::Notify();
 }