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
This commit is contained in:
Kevin Ollivier
2006-11-18 23:22:22 +00:00
parent 12cc29c56a
commit 706b630a1e

View 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