kopia lustrzana https://github.com/ihabunek/toot
Make flake8 happy
rodzic
64dd1094a9
commit
1e18f1f6d9
|
@ -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,
|
||||
|
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue