From bffb81b819060b8c720f5f91c4aa005a116ad778 Mon Sep 17 00:00:00 2001 From: Thomas Bouve Date: Thu, 16 Sep 2021 00:04:27 +0200 Subject: [PATCH] Update sample notebook --- ipyfilechooser_examples.ipynb | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/ipyfilechooser_examples.ipynb b/ipyfilechooser_examples.ipynb index e432164..02128d2 100644 --- a/ipyfilechooser_examples.ipynb +++ b/ipyfilechooser_examples.ipynb @@ -22,7 +22,6 @@ "# Title: FileChooser example\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='FileChooser example',\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'" ] }, {