Ban urwid==2.4.3 as containing UI regression.

Fix urwid entities init: use correct `super()`,
hack `__super` is officially deprecated.
Method <Class>.method(self, ...) is only for fallback in corner cases
(normally not recommended to use).
This commit is contained in:
Aleksei Stepanov 2024-01-18 10:22:38 +01:00
parent d856f3fd28
commit ed6ba63317
7 changed files with 31 additions and 31 deletions

View file

@ -75,7 +75,7 @@ class GuideEntry(urwid.WidgetWrap):
style = "topic_list_normal"
focus_style = "list_focus"
self.display_widget = urwid.AttrMap(widget, style, focus_style)
urwid.WidgetWrap.__init__(self, self.display_widget)
super().__init__(self.display_widget)
def display_topic(self, event, topic):
markup = TOPICS[topic]
@ -125,7 +125,7 @@ class TopicList(urwid.WidgetWrap):
highlight_offFocus="list_off_focus"
)
urwid.WidgetWrap.__init__(self, urwid.LineBox(self.ilb, title="Topics"))
super().__init__(urwid.LineBox(self.ilb, title="Topics"))
def keypress(self, size, key):