pygui: added services to node info panel

This commit is contained in:
Blake Harnden 2020-06-25 15:05:24 -07:00
parent d746cfa935
commit 98e4baca04

View file

@ -23,6 +23,12 @@ class NodeInfoFrame(InfoFrameBase):
frame.add_detail("Name", node.name)
if NodeUtils.is_model_node(node.type):
frame.add_detail("Type", node.model)
if NodeUtils.is_container_node(node.type):
for index, service in enumerate(sorted(node.services)):
if index == 0:
frame.add_detail("Services", service)
else:
frame.add_detail("", service)
if node.type == NodeType.EMANE:
emane = node.emane.split("_")[1:]
frame.add_detail("EMANE", emane)