def openFileHK(self): f = filedialog.askopenfile(mode='r') t = f.read() text.delete(0.0, END) text.insert(0.0, t) #Loops commands