mirror of
https://github.com/ihabunek/toot.git
synced 2024-06-30 06:35:24 +00:00
Upgraded to term-image 0.7.0
This commit is contained in:
parent
6d0edaf16f
commit
cb27d38e9b
|
@ -3,4 +3,4 @@ beautifulsoup4>=4.5.0,<5.0
|
||||||
wcwidth>=0.1.7
|
wcwidth>=0.1.7
|
||||||
urwid>=2.0.0,<3.0
|
urwid>=2.0.0,<3.0
|
||||||
pillow>=9.5.0
|
pillow>=9.5.0
|
||||||
term-image==0.6.1
|
term-image==0.7.0
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -40,7 +40,7 @@ setup(
|
||||||
"urwid>=2.0.0,<3.0",
|
"urwid>=2.0.0,<3.0",
|
||||||
"tomlkit>=0.10.0,<1.0"
|
"tomlkit>=0.10.0,<1.0"
|
||||||
"pillow>=9.5.0",
|
"pillow>=9.5.0",
|
||||||
"term-image==0.6.1",
|
"term-image==0.7.0",
|
||||||
],
|
],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|
|
@ -129,6 +129,7 @@ class TUI(urwid.Frame):
|
||||||
self.overlay = None
|
self.overlay = None
|
||||||
self.exception = None
|
self.exception = None
|
||||||
self.can_translate = False
|
self.can_translate = False
|
||||||
|
self.screen = UrwidImageScreen()
|
||||||
self.account = None
|
self.account = None
|
||||||
|
|
||||||
super().__init__(self.body, header=self.header, footer=self.footer)
|
super().__init__(self.body, header=self.header, footer=self.footer)
|
||||||
|
|
|
@ -147,6 +147,7 @@ class Timeline(urwid.Columns):
|
||||||
def modified(self):
|
def modified(self):
|
||||||
"""Called when the list focus switches to a new status"""
|
"""Called when the list focus switches to a new status"""
|
||||||
status, index, count = self.get_focused_status_with_counts()
|
status, index, count = self.get_focused_status_with_counts()
|
||||||
|
self.tui.screen.clear_images()
|
||||||
self.draw_status_details(status)
|
self.draw_status_details(status)
|
||||||
self._emit("focus")
|
self._emit("focus")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user