From b79ecf8fa10e114dfef0629df5e0e2ed232c32b4 Mon Sep 17 00:00:00 2001 From: doomsxday Date: Fri, 16 May 2025 18:41:15 +0200 Subject: [PATCH] fix tui scroll super call --- toot/tui/scroll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/tui/scroll.py b/toot/tui/scroll.py index e2bf9f0..541b5c0 100644 --- a/toot/tui/scroll.py +++ b/toot/tui/scroll.py @@ -50,7 +50,7 @@ class Scrollable(urwid.WidgetDecoration): self._old_cursor_coords = None self._rows_max_cached = 0 self.force_forward_keypress = force_forward_keypress - self.__super.__init__(widget) + super().__init__(widget) def render(self, size, focus=False): maxcol, maxrow = size @@ -340,7 +340,7 @@ class ScrollBar(urwid.WidgetDecoration): """ if BOX not in widget.sizing(): raise ValueError('Not a box widget: %r' % widget) - self.__super.__init__(widget) + super().__init__(widget) self._thumb_char = thumb_char self._trough_char = trough_char self.scrollbar_side = side