I'm new here, but look here often for help. Anyways, I am trying to use tkSimpleDialog.askinteger() to ask for how many files the user needs to read into the program. I want to read the files in based on the integer that the user inputs in a for loop. I would index the file names f[1] through f[n] for the file names. Any input would be greatly appreciated!
Please view below for an idea of what I am trying to get at:
def callback2():
NumDates = tkSimpleDialog.askinteger("NDates", "How many dates are there?")
for dates in NumDates:
filename[dates] = tkFileDialog.askopenfilename()
dates = dates + 1
filenameDates.append(filename)