kivymd_extensions.filemanager.file_chooser_icon¶
API - kivymd_extensions.filemanager.file_chooser_icon
¶
-
class
kivymd_extensions.filemanager.file_chooser_icon.
CustomFileChooserIcon
(**kwargs)¶ Base for implementing a FileChooser. Don’t use this class directly, but prefer using an implementation such as the
FileChooser
,FileChooserListView
orFileChooserIconView
.- Events
- on_entry_added: entry, parent
Fired when a root-level entry is added to the file list. If you return True from this event, the entry is not added to FileChooser.
- on_entries_cleared
Fired when the the entries list is cleared, usually when the root is refreshed.
- on_subentry_to_entry: entry, parent
Fired when a sub-entry is added to an existing entry or when entries are removed from an entry e.g. when a node is closed.
- on_submit: selection, touch
Fired when a file has been selected with a double-tap.
-
thumbsize
¶ The size of the thumbnails.
thumbsize
is anNumericProperty
and defaults to dp(48).
-
icon_folder
¶ Path to icon folder.
icon_folder
is anStringProperty
and defaults to ‘’.
-
text_color
¶ Label color for file and directory names.
text_color
is anListProperty
and defaults to [].
-
get_icon_file
¶ Method that returns the icon path for the file.
get_icon_file
is anObjectProperty
and defaults to None.
-
manager
¶ MDDesktopFileManager
object.manager
is anObjectProperty
and defaults to None.
-
entry_released
(self, entry, touch)¶ This method must be called by the template when an entry is touched by the user.