mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-14 11:52:19 -04:00
User interface enhancements
This commit is contained in:
parent
557ddd7d1e
commit
7d5bb8e016
5 changed files with 54 additions and 30 deletions
|
@ -67,9 +67,9 @@ class AnnounceInfo(urwid.WidgetWrap):
|
|||
is_node = announce[3]
|
||||
|
||||
if is_node:
|
||||
type_string = g["node"] + " Node"
|
||||
type_string = "Node " + g["node"]
|
||||
else:
|
||||
type_string = g["peer"] + " Peer"
|
||||
type_string = "Peer " + g["peer"]
|
||||
|
||||
try:
|
||||
data_str = announce[2].decode("utf-8")
|
||||
|
@ -461,8 +461,6 @@ class KnownNodes(urwid.WidgetWrap):
|
|||
# TODO: Sort list
|
||||
return widget_list
|
||||
|
||||
|
||||
|
||||
class NodeEntry(urwid.WidgetWrap):
|
||||
def __init__(self, app, node, delegate):
|
||||
source_hash = node.source_hash
|
||||
|
@ -712,8 +710,6 @@ class NetworkStats(urwid.WidgetWrap):
|
|||
self.w_heard_peers.start()
|
||||
self.w_known_nodes.start()
|
||||
|
||||
|
||||
|
||||
class NetworkLeftPile(urwid.Pile):
|
||||
def keypress(self, size, key):
|
||||
if key == "ctrl l":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue