kopia lustrzana https://github.com/crahan/ipyfilechooser
Update sample notebook
rodzic
2ef6cc44f8
commit
bffb81b819
|
@ -22,7 +22,6 @@
|
|||
"# Title: <b>FileChooser example</b>\n",
|
||||
"# Show hidden files: no\n",
|
||||
"# Use the default path and filename as selection: yes\n",
|
||||
"# Use folder icons: yes\n",
|
||||
"# Only show folders: no\n",
|
||||
"fdialog = FileChooser(\n",
|
||||
" os.getcwd(),\n",
|
||||
|
@ -30,7 +29,6 @@
|
|||
" title='<b>FileChooser example</b>',\n",
|
||||
" show_hidden=False,\n",
|
||||
" select_default=True,\n",
|
||||
" use_dir_icons=True,\n",
|
||||
" show_only_dirs=False\n",
|
||||
")\n",
|
||||
"\n",
|
||||
|
@ -80,7 +78,28 @@
|
|||
"# Show hidden files, change rows to 10, and hide folder icons\n",
|
||||
"fdialog.show_hidden = True\n",
|
||||
"fdialog.rows = 10\n",
|
||||
"fdialog.use_dir_icons = False"
|
||||
"fdialog.dir_icon = None"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Change folder icon to `os.sep` and append it to the folder name\n",
|
||||
"fdialog.dir_icon = os.sep\n",
|
||||
"fdialog.dir_icon_append = True"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Restrict navigation\n",
|
||||
"fdialog.sandbox_path = '/Users/jdoe'"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue