From cded9ef63081390d81ed514f8e2365f23fca1fc1 Mon Sep 17 00:00:00 2001 From: Huy Pham <42948410+hpham@users.noreply.github.com> Date: Mon, 20 Jan 2020 09:11:43 -0800 Subject: [PATCH] canvas wallpaper --- daemon/core/gui/coreclient.py | 3 +++ daemon/core/gui/graph/graph.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/daemon/core/gui/coreclient.py b/daemon/core/gui/coreclient.py index f4371715..9427850a 100644 --- a/daemon/core/gui/coreclient.py +++ b/daemon/core/gui/coreclient.py @@ -300,6 +300,7 @@ class CoreClient: # get metadata response = self.client.get_session_metadata(self.session_id) self.parse_metadata(response.config) + except grpc.RpcError as 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} self.client.set_emane_config(self.session_id, config) + self.set_metadata() + def close(self): """ Clean ups when done using grpc diff --git a/daemon/core/gui/graph/graph.py b/daemon/core/gui/graph/graph.py index 76dc427f..707d8bc6 100644 --- a/daemon/core/gui/graph/graph.py +++ b/daemon/core/gui/graph/graph.py @@ -214,6 +214,8 @@ class CanvasGraph(tk.Canvas): """ Draw existing session. """ + print("print session") + print(session) # draw existing nodes for core_node in session.nodes: # peer to peer node is not drawn on the GUI