mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-12 11:02:10 -04:00
update to use super().__init__(widget)
This commit is contained in:
parent
4eed5bab48
commit
b9ac735308
1 changed files with 2 additions and 2 deletions
4
nomadnet/vendor/Scrollable.py
vendored
4
nomadnet/vendor/Scrollable.py
vendored
|
@ -50,7 +50,7 @@ class Scrollable(urwid.WidgetDecoration):
|
||||||
self._old_cursor_coords = None
|
self._old_cursor_coords = None
|
||||||
self._rows_max_cached = 0
|
self._rows_max_cached = 0
|
||||||
self.force_forward_keypress = force_forward_keypress
|
self.force_forward_keypress = force_forward_keypress
|
||||||
self.__super.__init__(widget)
|
super().__init__(widget)
|
||||||
|
|
||||||
def render(self, size, focus=False):
|
def render(self, size, focus=False):
|
||||||
maxcol, maxrow = size
|
maxcol, maxrow = size
|
||||||
|
@ -340,7 +340,7 @@ class ScrollBar(urwid.WidgetDecoration):
|
||||||
"""
|
"""
|
||||||
if BOX not in widget.sizing():
|
if BOX not in widget.sizing():
|
||||||
raise ValueError('Not a box widget: %r' % widget)
|
raise ValueError('Not a box widget: %r' % widget)
|
||||||
self.__super.__init__(widget)
|
super().__init__(widget)
|
||||||
self._thumb_char = thumb_char
|
self._thumb_char = thumb_char
|
||||||
self._trough_char = trough_char
|
self._trough_char = trough_char
|
||||||
self.scrollbar_side = side
|
self.scrollbar_side = side
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue