canvas wallpaper
This commit is contained in:
parent
845198efc6
commit
cded9ef630
2 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,7 @@ class CoreClient:
|
||||||
# get metadata
|
# get metadata
|
||||||
response = self.client.get_session_metadata(self.session_id)
|
response = self.client.get_session_metadata(self.session_id)
|
||||||
self.parse_metadata(response.config)
|
self.parse_metadata(response.config)
|
||||||
|
|
||||||
except grpc.RpcError as e:
|
except grpc.RpcError as e:
|
||||||
self.app.after(0, show_grpc_error, e)
|
self.app.after(0, show_grpc_error, e)
|
||||||
|
|
||||||
|
@ -669,6 +670,8 @@ class CoreClient:
|
||||||
config = {x: self.emane_config[x].value for x in self.emane_config}
|
config = {x: self.emane_config[x].value for x in self.emane_config}
|
||||||
self.client.set_emane_config(self.session_id, config)
|
self.client.set_emane_config(self.session_id, config)
|
||||||
|
|
||||||
|
self.set_metadata()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""
|
"""
|
||||||
Clean ups when done using grpc
|
Clean ups when done using grpc
|
||||||
|
|
|
@ -214,6 +214,8 @@ class CanvasGraph(tk.Canvas):
|
||||||
"""
|
"""
|
||||||
Draw existing session.
|
Draw existing session.
|
||||||
"""
|
"""
|
||||||
|
print("print session")
|
||||||
|
print(session)
|
||||||
# draw existing nodes
|
# draw existing nodes
|
||||||
for core_node in session.nodes:
|
for core_node in session.nodes:
|
||||||
# peer to peer node is not drawn on the GUI
|
# peer to peer node is not drawn on the GUI
|
||||||
|
|
Loading…
Reference in a new issue