def LoadWebPage(): HtmlFile = filedialog.askopenfilename() File = open(HtmlFile, encoding='utf-8') soup = BeautifulSoup(File.read(), features="html.parser") Data = GetQuestions.GetAnswers(soup) model = TableModel() table = TableCanvas(tframe, data=Data) table.thefont = ('Arial', 10) table.show()