1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Upgraded to term-image 0.7.0

This commit is contained in:
Daniel Schwarz 2023-06-22 20:58:32 -04:00 committed by Ivan Habunek
parent 6d0edaf16f
commit cb27d38e9b
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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': [

View File

@ -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)

View File

@ -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")