From 706b630a1ed662d204abe12e87d64ddb62ce5f67 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sat, 18 Nov 2006 23:22:22 +0000 Subject: [PATCH] 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 --- wxPython/demo/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0