I'm using filechooser based on the Kivy example demo:
The .kv file:
on_selection: nada = app.loader(list_view_tab.selection)
on_selection: nada = app.loader(icon_view_tab.selection)
size_hint: (None, 1)
on_text: list_view_tab.filters = icon_view_tab.filters = text.split(',')
The filter doesn't work. What have I missed?
You set the
filter property for both your FileChooserListViews, but this doesn't seem to exist. You should instead set the
filters property, which must be a list of strings. This is documented here in the kivy doc.
In the FileChooserListView there are the column names Name and Size. How can I change these for other languages?
I don't think this is exposed in the api, though it probably should be. For now, you probably have to change your kivy source. The relevant lines are in the FileChooserListView rule of kivy/data/style.kv, you can find them here in kivy's github.
How can I select files by single click?
I'm not sure about the best way, but I might look into the
selection property of the FileChooserListView. As a kivy property, this will call the method
on_selection when the selection changes, so you can put your desired behaviour there.
There may be some fiddliness with exactly how and when the selection changes, but it seems like the right sort of thing.