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

@ -788,7 +788,7 @@ class ConversationWidget(urwid.WidgetWrap):
if source_hash == None:
self.frame = None
display_widget = urwid.LineBox(urwid.Filler(urwid.Text("\n No conversation selected"), "top"))
urwid.WidgetWrap.__init__(self, display_widget)
super().__init__(display_widget)
else:
if source_hash in ConversationsDisplay.cached_conversation_widgets:
return ConversationsDisplay.cached_conversation_widgets[source_hash]
@ -852,7 +852,7 @@ class ConversationWidget(urwid.WidgetWrap):
self.frame
)
urwid.WidgetWrap.__init__(self, self.display_widget)
super().__init__(self.display_widget)
def clear_history_dialog(self):
def dismiss_dialog(sender):
@ -1141,7 +1141,7 @@ class LXMessageWidget(urwid.WidgetWrap):
urwid.Text("")
])
urwid.WidgetWrap.__init__(self, display_widget)
super().__init__(display_widget)
class SyncProgressBar(urwid.ProgressBar):
def get_text(self):