Skip to content

Commit

Permalink
Make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Jan 1, 2023
1 parent 64dd109 commit 1e18f1f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions toot/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ def show_status_source(self, status):
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 []
Expand All @@ -359,7 +359,7 @@ def show_links(self, status):
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,
Expand Down
36 changes: 18 additions & 18 deletions toot/tui/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1e18f1f

Please sign in to comment.