class wxPyGridCellEditor : public wxGridCellEditor {
public:
%pythonAppend wxPyGridCellEditor "self._setCallbackInfo(self, PyGridCellEditor);self._setOORInfo(self)"
-
+
wxPyGridCellEditor();
void _setCallbackInfo(PyObject* self, PyObject* _class);
self->SetClientObject(new wxPyOORClientData(_self));
}
}
-
+
%pythonAppend wxGridCellAttr "self._setOORInfo(self)"
wxGridCellAttr(wxGridCellAttr *attrDefault = NULL);
DocDeclA(
void, GetAlignment(int *OUTPUT, int *OUTPUT) const,
"GetAlignment() -> (hAlign, vAlign)");
-
+
DocDeclA(
void, GetSize(int *OUTPUT, int *OUTPUT) const,
"GetSize() -> (num_rows, num_cols)");
PyObject* ro;
ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
if (ro) {
+ if (!PyString_Check(ro) && !PyUnicode_Check(ro)) {
+ PyObject* old = ro;
+ ro = PyObject_Str(ro);
+ Py_DECREF(old);
+ }
rval = Py2wxString(ro);
Py_DECREF(ro);
}
bool wxGridCellCoords_typecheck(PyObject* source) {
void* ptr;
-
+
if (wxPySwigInstance_Check(source) &&
wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
return True;
PyErr_Clear();
if (PySequence_Check(source) && PySequence_Length(source) == 2)
return True;
-
+
return False;
}
%}
const wxString& name = wxPyPanelNameStr);
%name(PreGrid) wxGrid();
-
-
+
+
bool Create( wxWindow *parent,
wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
long style = wxWANTS_CHARS,
const wxString& name = wxPyPanelNameStr );
-
+
enum wxGridSelectionModes {
wxGridSelectCells,
wxGridSelectRows,
DocDeclA(
void, GetRowLabelAlignment( int *OUTPUT, int *OUTPUT ),
"GetRowLabelAlignment() -> (horiz, vert)");
-
+
DocDeclA(
void, GetColLabelAlignment( int *OUTPUT, int *OUTPUT ),
"GetColLabelAlignment() -> (horiz, vert)");
DocDeclA(
void, GetDefaultCellAlignment( int *OUTPUT, int *OUTPUT ),
"GetDefaultCellAlignment() -> (horiz, vert)");
-
+
DocDeclA(
void, GetCellAlignment( int row, int col, int *OUTPUT, int *OUTPUT ),
"GetCellAlignment() -> (horiz, vert)");