mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-04 23:25:27 -04:00
Handle urwid API deprecations
* `_get_base_widget` method is going to be removed
This commit is contained in:
parent
d8cfc69ac6
commit
c95fd83400
1 changed files with 3 additions and 3 deletions
|
@ -1594,10 +1594,10 @@ class NetworkDisplay():
|
||||||
if self.list_display == 1:
|
if self.list_display == 1:
|
||||||
parent = self.app.ui.main_display.sub_displays.network_display
|
parent = self.app.ui.main_display.sub_displays.network_display
|
||||||
selected_node_entry = parent.known_nodes_display.ilb.get_selected_item()
|
selected_node_entry = parent.known_nodes_display.ilb.get_selected_item()
|
||||||
if selected_node_entry != None:
|
if selected_node_entry is not None:
|
||||||
selected_node_hash = selected_node_entry._get_base_widget().display_widget.source_hash
|
selected_node_hash = selected_node_entry.base_widget.display_widget.source_hash
|
||||||
|
|
||||||
if selected_node_hash != None:
|
if selected_node_hash is not None:
|
||||||
info_widget = KnownNodeInfo(selected_node_hash)
|
info_widget = KnownNodeInfo(selected_node_hash)
|
||||||
options = parent.left_pile.options(height_type=urwid.WEIGHT, height_amount=1)
|
options = parent.left_pile.options(height_type=urwid.WEIGHT, height_amount=1)
|
||||||
parent.left_pile.contents[0] = (info_widget, options)
|
parent.left_pile.contents[0] = (info_widget, options)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue