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;
bool m_control;
bool m_shift;
wxGridCell* m_cell;
+
+ int GetRow();
+ int GetCol();
+ wxPoint GetPosition();
+ bool ControlDown();
+ bool ShiftDown();
+ wxGridCell* GetCell();
};
void Initialize(wxWindow* window);
bool IsSplit();
-
+ bool ReplaceWindow(wxWindow * winOld, wxWindow * winNew);
void SetBorderSize(int width);
void SetSashPosition(int position, int redraw = TRUE);
void SetSashSize(int width);