Merge pull request #342 from coreemu/enhancement/disable-grpc-client-proxy

Enhancement/disable grpc client proxy
This commit is contained in:
bharnden 2020-01-14 22:17:33 -08:00 committed by GitHub
commit 41bf279f76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 8 deletions

View file

@ -17,8 +17,8 @@ HEIGHT = 800
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
def __init__(self, proxy):
super().__init__(master=None)
# load node icons
NodeUtils.setup()
@ -33,7 +33,7 @@ class Application(tk.Frame):
self.guiconfig = appconfig.read()
self.style = ttk.Style()
self.setup_theme()
self.core = CoreClient(self)
self.core = CoreClient(self, proxy)
self.setup_app()
self.draw()
self.core.set_up()

View file

@ -47,11 +47,11 @@ class Observer:
class CoreClient:
def __init__(self, app):
def __init__(self, app, proxy):
"""
Create a CoreGrpc instance
"""
self.client = client.CoreGrpcClient()
self.client = client.CoreGrpcClient(proxy=proxy)
self.session_id = None
self.node_ids = []
self.app = app