def calFrequency(event):
files = tkFileDialog.askopenfilenames()
fileList = list(files)
print(fileList)
freqCommand = []
freqCommand.append("python")
freqCommand.append("./scripts/frequency.py")
for f in fileList:
freqCommand.append(f)
outFile = open("frequency_output.txt", "w")
result = subprocess.call(freqCommand, stdout=outFile)
outFile.close()
# open a new window to view the frequency output
评论列表
文章目录