From d541f61fffc840d4587a0ed446b07d09642bf77b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 29 Oct 2006 02:53:05 +0000 Subject: [PATCH] wxGridCellBoolEditor::UseStringValues git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/grid.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 69b0c9b4a6..9b01265c22 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -939,11 +939,22 @@ public: }; +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 -- 2.45.2