// Let SWIG know about it so it can create the Python version
class wxPyGridCellRenderer : public wxGridCellRenderer {
public:
- %pythonAppend wxPyGridCellRenderer "self._setCallbackInfo(self, PyGridCellRenderer);self._setOORInfo(self)"
+ %pythonAppend wxPyGridCellRenderer "self._setOORInfo(self);" setCallbackInfo(PyGridCellRenderer);
wxPyGridCellRenderer();
void _setCallbackInfo(PyObject* self, PyObject* _class);
// Let SWIG know about it so it can create the Python version
class wxPyGridCellEditor : public wxGridCellEditor {
public:
- %pythonAppend wxPyGridCellEditor "self._setCallbackInfo(self, PyGridCellEditor);self._setOORInfo(self)"
+ %pythonAppend wxPyGridCellEditor "self._setOORInfo(self);" setCallbackInfo(PyGridCellEditor)
wxPyGridCellEditor();
void _setCallbackInfo(PyObject* self, PyObject* _class);
};
+MAKE_CONST_WXSTRING2(OneString, _T("1"));
class wxGridCellBoolEditor : public wxGridCellEditor
{
public:
%pythonAppend wxGridCellBoolEditor "self._setOORInfo(self)"
wxGridCellBoolEditor();
+
+ // set the string values returned by GetValue() for the true and false
+ // states, respectively
+ static void UseStringValues(const wxString& valueTrue = wxPyOneString,
+ const wxString& valueFalse = wxPyEmptyString);
+
+ // return true if the given string is equal to the string representation of
+ // true value which we currently use
+ static bool IsTrueValue(const wxString& value);
+
};
class wxGridCellChoiceEditor : public wxGridCellEditor
class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
{
public:
- %pythonAppend wxPyGridCellAttrProvider "self._setCallbackInfo(self, PyGridCellAttrProvider)"
+ %pythonAppend wxPyGridCellAttrProvider setCallbackInfo(PyGridCellAttrProvider)
wxPyGridCellAttrProvider();
void _setCallbackInfo(PyObject* self, PyObject* _class);
class wxPyGridTableBase : public wxGridTableBase
{
public:
- %pythonAppend wxPyGridTableBase "self._setCallbackInfo(self, PyGridTableBase);self._setOORInfo(self)"
+ %pythonAppend wxPyGridTableBase "self._setOORInfo(self);" setCallbackInfo(PyGridTableBase)
wxPyGridTableBase();
void _setCallbackInfo(PyObject* self, PyObject* _class);