Merge pull request #73 from Sudo-Ivan/upstream-main-snapshot
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled

Fix Scrollable.py
This commit is contained in:
markqvist 2025-05-09 11:20:01 +02:00 committed by GitHub
commit d1118e5dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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