Skip to content

Commit

Permalink
Merge branch 'main' into enhancement/hold
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Nov 18, 2024
2 parents 07c5d14 + a248460 commit 50b3859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/reference/widgets/FileDownload.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"\n",
"##### Core\n",
"\n",
"* **`auto`** (boolean): Whether to download the file the initial click (if `True`) or when clicking a second time (or via the right-click Save file menu).\n",
"* **`auto`** (boolean): Whether to download the file with the first click (if `True`) or only after clicking a second time (if `False`, enables right-click -> Save as).\n",
"* **`callback`** (callable): A callable that returns a file or file-like object (takes precedence over `file` if set). \n",
"* **`embed`** (boolean): Whether to embed the data on initialization.\n",
"* **`file`** (str, Path or file-like object): A path to a file or a file-like object.\n",
Expand Down
4 changes: 3 additions & 1 deletion panel/pane/_textual.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ def _disable_mouse_support(self) -> None:
self.flush()

def _process_input(self, event):
# Textual 0.86 changed from `process_event` to `process_message`
fn = self.process_event if hasattr(self, 'process_event') else self.process_message
for parsed_event in self._parser.feed(event.new):
self.process_event(parsed_event)
fn(parsed_event)

def disable_input(self):
if self._input_watcher is None:
Expand Down

0 comments on commit 50b3859

Please sign in to comment.