Added support for .txt

This commit is contained in:
Sheppy
2018-02-08 17:49:02 +01:00
committed by atlantispc_sheppy
parent a4a259fefc
commit ab24cb843f
2 changed files with 22 additions and 1 deletions

View File

@@ -246,7 +246,7 @@ def open_file():
return f
path=None
path=tkinter.filedialog.askopenfilename(filetypes=(("DBF/XLS Files",("*.DBF","*.dbf","*.xls","*.XLS")),("All Files","*.*")))
path=tkinter.filedialog.askopenfilename(filetypes=(("DBF/XLS Files",("*.DBF","*.dbf","*.xls","*.XLS","*.txt","*.TXT")),("All Files","*.*")))
if path == None or path=="":
print("Error: No file selected!")
return None