Dec-07-2022, 09:19 PM
Gee...Thx ! I'm still begginer so i miss things that are so obvious
def openFile(): filepath = filedialog.askopenfilename(initialdir="C:\\Test", title="Open file okay?", filetypes=(("text files", "*.txt"), ("all files", "*.*"))) if len(filepath) == 0: return file = open(filepath, 'r') print(file.read()) file.close()