]> git.saurik.com Git - wxWidgets.git/commitdiff
Updated wxColumnSorterMixin to also be able to place sort icons on the
authorRobin Dunn <robin@alldunn.com>
Mon, 3 Sep 2001 22:47:34 +0000 (22:47 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 3 Sep 2001 22:47:34 +0000 (22:47 +0000)
column headers, and updated the wxListCtrl demo to show it off by
using wxColumnSorterMixin.

Other odds and ends...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/controls2.i
wxPython/src/msw/controls2.py

index df98aa8b98edd36de6d06b64e8f026afa41636da..01436fa680ad2317d1f181c42909a23251619cfa 100644 (file)
@@ -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
index 425977be64ae181968d13dcb8b6403f3c3481b7d..b9c67e124c529056b310958479150a4a0e99c330 100644 (file)
@@ -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