mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-05 23:55:13 -04:00
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:
parent
d856f3fd28
commit
ed6ba63317
7 changed files with 31 additions and 31 deletions
|
@ -13,7 +13,7 @@ class ConfigFiller(urwid.WidgetWrap):
|
|||
def __init__(self, widget, app):
|
||||
self.app = app
|
||||
self.filler = urwid.Filler(widget, "top")
|
||||
urwid.WidgetWrap.__init__(self, self.filler)
|
||||
super().__init__(self.filler)
|
||||
|
||||
|
||||
def keypress(self, size, key):
|
||||
|
@ -71,7 +71,7 @@ class EditorTerminal(urwid.WidgetWrap):
|
|||
|
||||
urwid.connect_signal(self.term, 'closed', quit_term)
|
||||
|
||||
urwid.WidgetWrap.__init__(self, self.term)
|
||||
super().__init__(self.term)
|
||||
|
||||
|
||||
def keypress(self, size, key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue