From cb27d38e9bdacdeb4641b650c5c0182510dd916e Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Thu, 22 Jun 2023 20:58:32 -0400 Subject: [PATCH] Upgraded to term-image 0.7.0 --- requirements.txt | 2 +- setup.py | 2 +- toot/tui/app.py | 1 + toot/tui/timeline.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index bc01219..24c0608 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ beautifulsoup4>=4.5.0,<5.0 wcwidth>=0.1.7 urwid>=2.0.0,<3.0 pillow>=9.5.0 -term-image==0.6.1 +term-image==0.7.0 diff --git a/setup.py b/setup.py index 3cf8e9c..77c458b 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ setup( "urwid>=2.0.0,<3.0", "tomlkit>=0.10.0,<1.0" "pillow>=9.5.0", - "term-image==0.6.1", + "term-image==0.7.0", ], entry_points={ 'console_scripts': [ diff --git a/toot/tui/app.py b/toot/tui/app.py index f2676e7..2a4907c 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -129,6 +129,7 @@ class TUI(urwid.Frame): self.overlay = None self.exception = None self.can_translate = False + self.screen = UrwidImageScreen() self.account = None super().__init__(self.body, header=self.header, footer=self.footer) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 4799acb..a4fb73d 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -147,6 +147,7 @@ class Timeline(urwid.Columns): def modified(self): """Called when the list focus switches to a new status""" status, index, count = self.get_focused_status_with_counts() + self.tui.screen.clear_images() self.draw_status_details(status) self._emit("focus")