Skip to content

Commit 64f8e19

Browse files
lahwaaczihabunek
authored andcommitted
Fix compatibility with urwid 3.0.4
Fixes #558
1 parent 003dc2c commit 64f8e19

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

toot/tui/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def graphics_widget(img, image_format="block", corner_radius=0, colors=16777216)
9494
# "<" means left-justify the image
9595

9696
except ImportError:
97-
from urwid.raw_display import Screen
97+
from urwid.display.raw import Screen
9898
TuiScreen = Screen
9999

100100
def image_support_enabled():

toot/tui/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
logger = logging.getLogger("toot")
23-
screen = urwid.raw_display.Screen()
23+
screen = urwid.display.raw.Screen()
2424

2525

2626
class Timeline(urwid.Columns):

toot/tui/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def parse_content_links(content):
7272
return parser.links[:]
7373

7474

75-
def copy_to_clipboard(screen: urwid.raw_display.Screen, text: str):
75+
def copy_to_clipboard(screen: urwid.display.raw.Screen, text: str):
7676
""" copy text to clipboard using OSC 52
7777
This escape sequence is documented
7878
here https://iterm2.com/documentation-escape-codes.html

0 commit comments

Comments
 (0)