more on python type hint

This commit is contained in:
Huy Pham 2020-01-13 15:31:41 -08:00
parent eb5f2c5648
commit b9b8e3a5f1
32 changed files with 185 additions and 48 deletions

View file

@ -1,5 +1,6 @@
import tkinter as tk
from tkinter import ttk
from typing import Optional
from core.gui import appconfig, themes
from core.gui.coreclient import CoreClient
@ -17,7 +18,7 @@ HEIGHT = 800
class Application(tk.Frame):
def __init__(self, master=None):
def __init__(self, master: Optional[tk.Widget] = None):
super().__init__(master)
# load node icons
NodeUtils.setup()