type hint for new small update

This commit is contained in:
Huy Pham 2020-01-15 10:55:29 -08:00
commit c1c580cdc4
5 changed files with 21 additions and 9 deletions

View file

@ -17,8 +17,8 @@ HEIGHT = 800
class Application(tk.Frame):
def __init__(self, master: tk.Widget = None):
super().__init__(master)
def __init__(self, proxy: bool):
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

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