diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index df98aa8b98..01436fa680 100644 --- a/wxPython/src/controls2.i +++ b/wxPython/src/controls2.i @@ -659,7 +659,7 @@ public: %pragma(python) addtoclass = " # Some helpers... - def Select(self, idx, on=true): + def Select(self, idx, on=1): '''[de]select an item''' if on: state = wxLIST_STATE_SELECTED else: state = 0 diff --git a/wxPython/src/msw/controls2.py b/wxPython/src/msw/controls2.py index 425977be64..b9c67e124c 100644 --- a/wxPython/src/msw/controls2.py +++ b/wxPython/src/msw/controls2.py @@ -640,7 +640,7 @@ class wxListCtrlPtr(wxControlPtr): # Some helpers... - def Select(self, idx, on=true): + def Select(self, idx, on=1): '''[de]select an item''' if on: state = wxLIST_STATE_SELECTED else: state = 0