From: Kevin Ollivier Date: Sat, 18 Nov 2006 23:22:22 +0000 (+0000) Subject: Make sure both filter and item text are converted to lower-case, otherwise only lower... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/706b630a1ed662d204abe12e87d64ddb62ce5f67 Make sure both filter and item text are converted to lower-case, otherwise only lower-case queries work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 5a3d473373..0598adb064 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -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