diff --git a/toot/tui/app.py b/toot/tui/app.py index 3ab44e7..650f771 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -348,8 +348,8 @@ class TUI(urwid.Frame): title="Status source", ) - def _clear_screen(self, widget): - self.loop.screen.clear() + def _clear_screen(self, widget): + self.loop.screen.clear() def show_links(self, status): links = parse_content_links(status.data["content"]) if status else [] @@ -359,7 +359,7 @@ class TUI(urwid.Frame): url = a["remote_url"] or a["url"] links.append((url, a["description"] if a["description"] else url)) if links: - sl_widget=StatusLinks(links) + sl_widget = StatusLinks(links) urwid.connect_signal(sl_widget, "clear-screen", self._clear_screen) self.open_overlay( widget=sl_widget, diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 05c5f1f..43f927a 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -16,24 +16,24 @@ class Timeline(urwid.Columns): Displays a list of statuses to the left, and status details on the right. """ signals = [ - "close", # Close thread - "compose", # Compose a new toot - "delete", # Delete own status - "favourite", # Favourite status - "focus", # Focus changed - "bookmark", # Bookmark status - "media", # Display media attachments - "menu", # Show a context menu - "next", # Fetch more statuses - "reblog", # Reblog status - "reply", # Compose a reply to a status - "source", # Show status source - "links", # Show status links - "thread", # Show thread for status - "translate", # Translate status - "save", # Save current timeline - "zoom", # Open status in scrollable popup window - "clear-screen", # clear the screen (used internally) + "close", # Close thread + "compose", # Compose a new toot + "delete", # Delete own status + "favourite", # Favourite status + "focus", # Focus changed + "bookmark", # Bookmark status + "media", # Display media attachments + "menu", # Show a context menu + "next", # Fetch more statuses + "reblog", # Reblog status + "reply", # Compose a reply to a status + "source", # Show status source + "links", # Show status links + "thread", # Show thread for status + "translate", # Translate status + "save", # Save current timeline + "zoom", # Open status in scrollable popup window + "clear-screen", # Clear the screen (used internally) ] def __init__(self, name, statuses, can_translate, focus=0, is_thread=False):