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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user