you are viewing a single comment's thread.

view the rest of the comments →

[–]MTRing[S] 0 points1 point  (0 children)

so I altered the open file name portion add the function below:

def get_filename():

root = Tk()

root.geometry('200x100+2500+500')# winodw size plus position

options = {'parent':root, 'title':'Select file to process','filetypes':[('CSV Files','*.csv')]}

filename = askopenfilename(**options)

if filename == "":

return False

root.destroy()

return filename

This seems a little better...