kopia lustrzana https://github.com/crahan/ipyfilechooser
Version bump and doc update
rodzic
b82dec0190
commit
ea8a84afbb
23
README.md
23
README.md
|
@ -30,11 +30,15 @@ fc.reset()
|
|||
# Shorthand reset
|
||||
fc.reset(path='/Users/crahan/', filename='output.txt')
|
||||
|
||||
# Restrict navigation to /Users
|
||||
fc.sandbox_path = '/Users'
|
||||
|
||||
# Change hidden files
|
||||
fc.show_hidden = True
|
||||
|
||||
# Show or hide folder icons
|
||||
fc.use_dir_icons = True
|
||||
# Customize dir icon
|
||||
fc.dir_icon = '/'
|
||||
fc.dir_icon_append = True
|
||||
|
||||
# Switch to folder-only mode
|
||||
fc.show_only_dirs = True
|
||||
|
@ -63,7 +67,8 @@ fc.reset()
|
|||
fc.refresh()
|
||||
fc.register_callback(function_name)
|
||||
fc.show_hidden
|
||||
fc.use_dir_icons
|
||||
fc.dir_icon
|
||||
fc.dir_icon_append
|
||||
fc.show_only_dirs
|
||||
fc.rows
|
||||
fc.title
|
||||
|
@ -71,6 +76,7 @@ fc.filter_pattern
|
|||
fc.default
|
||||
fc.default_path
|
||||
fc.default_filename
|
||||
fc.sandbox_path
|
||||
fc.value
|
||||
fc.selected
|
||||
fc.selected_path
|
||||
|
@ -102,6 +108,17 @@ fc.selected_filename
|
|||
|
||||
## Release notes
|
||||
|
||||
### 0.6.0
|
||||
|
||||
- The ability to restrict file browsing to a `sandbox_path` folder has finally been added!
|
||||
- Filenames can not contain path separator characters or parent folder strings (i.e., '..')
|
||||
- `use_dir_icons` has been replaced with `dir_icon` which allows for customizing the folder icon
|
||||
- `dir_icon_append` can now be used to put the folder icon before or after the folder name
|
||||
- Better error handling with `ParentPathError`, `InvalidPathError`, and `InvalidFileNameError`
|
||||
- Better and more consistent handling of Windows drive letters and paths
|
||||
- Select button is now properly activated again when applying a selection or resetting the filechooser
|
||||
|
||||
|
||||
### 0.5.0
|
||||
|
||||
- Widget width is now configurable using the `layout` property and a `Layout` object
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
from .filechooser import FileChooser
|
||||
|
||||
__version__ = '0.5.0'
|
||||
__version__ = '0.6.0'
|
||||
|
|
|
@ -11,7 +11,7 @@ class FileChooser(VBox, ValueWidget):
|
|||
"""FileChooser class."""
|
||||
|
||||
_LBL_TEMPLATE = '<span style="color:{1};">{0}</span>'
|
||||
_LBL_NOFILE = 'No file selected'
|
||||
_LBL_NOFILE = 'No selection'
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
2
setup.py
2
setup.py
|
@ -11,7 +11,7 @@ def read(fname: str) -> str:
|
|||
|
||||
setup(
|
||||
name='ipyfilechooser',
|
||||
version='0.5.0',
|
||||
version='0.6.0',
|
||||
author='Thomas Bouve (@crahan)',
|
||||
author_email='crahan@n00.be',
|
||||
description=(
|
||||
|
|
Ładowanie…
Reference in New Issue