Skip to content

Commit

Permalink
compat: textual 0.86 (#7501)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Nov 18, 2024
1 parent 7015943 commit 4da2b8e
Showing 1 changed file with 3 additions and 1 deletion.
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 4da2b8e

Please sign in to comment.