]> git.saurik.com Git - wxWidgets.git/commitdiff
Make sure both filter and item text are converted to lower-case, otherwise only lower...
authorKevin Ollivier <kevino@theolliviers.com>
Sat, 18 Nov 2006 23:22:22 +0000 (23:22 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sat, 18 Nov 2006 23:22:22 +0000 (23:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Main.py

index 5a3d4733735a189f9e13f665dc2773000d6598f2..0598adb064a3e9ddfad7ba389fdf4adb02d4f716 100644 (file)
@@ -1369,7 +1369,7 @@ class wxPythonDemo(wx.Frame):
         filter = self.filter.GetValue()
         for category, items in _treeList:
             if filter:
-                items = [item for item in items if filter in item.lower()]
+                items = [item for item in items if filter.lower() in item.lower()]
             if items:
                 child = self.tree.AppendItem(self.root, category)
                 if not firstChild: firstChild = child