Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Created July 19, 2012 23:01
Show Gist options
  • Save tshirtman/3147466 to your computer and use it in GitHub Desktop.
Save tshirtman/3147466 to your computer and use it in GitHub Desktop.
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
========== =================================
Pattern Meaning
========== =================================
\* matches everything
? matches any single character
[seq] matches any character in seq
[!seq] matches any character not in seq
========== =================================
And callables :
.. versionchanged:: 1.4.0
if the filter is a callable (function or method). It will be called with
the path and the file name as arguments for each file in dir. The callable
should returns True to indicate a match and False overwise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment