def __init__(self):
tk.Tk.__init__(self)
tk.Tk.wm_title(self, "Smart Trader System")
if os.name == "nt":
tk.Tk.iconbitmap(self, default="app_icon.ico")
self.configure(background = StColors.dark_grey)
set_app_style()
# Top section (header)
title = ttk.Label(self, text="Smart Trader Portal", font=("Tahoma", 25, 'bold'))
title.pack()
# Lower section (tabs area)
notebook = ttk.Notebook(self)
notebook.pack()
# Create Controllers and add their views
explore = ExploreController(self)
train = TrainingController(self)
backtest= BacktestController(self)
forecast= ForecastController(self)
for view_frame in (explore.view, train.view, backtest.view, forecast.view):
view_frame.grid(row=0, column=0, sticky="nsew")
notebook.add(view_frame, text = view_frame.title)
评论列表
文章目录