]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/controls2.i
* Added IsPaused() to wxSoundFileStream
[wxWidgets.git] / utils / wxPython / src / controls2.i
index 1ff1ff3639cb93e16bd4da0b403d64f2652dfc8f..d6c263814c3ede277f58243193779557d3d6697e 100644 (file)
@@ -412,6 +412,7 @@ public:
     //size_t GetSelections(wxArrayTreeItemIds& selection);
     %addmethods {
         PyObject* GetSelections() {
+            bool doSave = wxPyRestoreThread();
             PyObject*           rval = PyList_New(0);
             wxArrayTreeItemIds  array;
             size_t              num, x;
@@ -421,6 +422,7 @@ public:
                                                      "wxTreeItemId");
                 PyList_Append(rval, item);
             }
+            wxPySaveThread(doSave);
             return rval;
         }
     }