Some tweaks and updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-09-10 06:23:48 +00:00
parent 922dc97681
commit 1afc06c2d8
32 changed files with 1260 additions and 764 deletions

View File

@@ -131,15 +131,9 @@ public:
for (col=0; col < self->GetCols(); col++) {
wxGridCell* cell = self->GetCell(row, col);
#ifdef WXP_WITH_THREAD
PyEval_RestoreThread(wxPyEventThreadState);
wxPyInEvent = true;
#endif
bool doSave = wxPyRestoreThread();
PyObject* pyCell = wxPyConstructObject(cell, "wxGridCell");
#ifdef WXP_WITH_THREAD
PyEval_SaveThread();
wxPyInEvent = false;
#endif
wxPySaveThread(doSave);
if (PyList_Append(rowList, pyCell) == -1)
return NULL;