driscollis / applications_with_wxpython

Code examples for the book, Creating GUI Application with wxPython
https://www.blog.pythonlibrary.org
116 stars 26 forks source link

Chapter 11 - Search does not recognize mixed case filename entries #22

Closed cmcknight closed 5 years ago

cmcknight commented 5 years ago

A mixed-case filename doesn't appear to be found but using the same name unless the case sensitive checkbox is selected. However, a lowercase file name is found.

Steps to Recreate

  1. Choose folder
  2. Enter known to be good mixed-case file name
  3. Tap Enter
  4. Nothing gets displayed
  5. Enter known to be good file name in lowercase
  6. Tap Enter
  7. File is displayed

My expectation would be that the case-sensitive flag would filter out file names that don't match and not display them whereas if the case-sensitive flag is not selected the control would display anything that matched regardless of case.

driscollis commented 5 years ago

I just tried this out with a folder that had multiple files with the same name, but different case. I had to adjust it a bit to only look at filenames instead of the full path. It seems to work correctly now with my changes.