type hint for new small update
This commit is contained in:
commit
c1c580cdc4
5 changed files with 21 additions and 9 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue