Tkinter имеет кнопки для просмотра местоположения входного и выходного файла, а содержимое файла изменяется и сохраняется. Обрабатываемые файлы необходимо проанализировать в приложении, которое использует эти файлы. Для анализа файлов, которые я использую os.system ( "...........") который выполняется первым.
def callbackinput():
fileInPath=filedialog.askopenfilename(filetypes=
[("Excelfiles","*.xlsx")])inExcel.set(fileInPath)
def running():
\\has some content as well
def callbackoutput():
fileOutPath=filedialog.askopenfilename(filetypes=[("text
files","*.txt")])
outText.set(fileOutPath)
def commandline():
os.system(r'python -m plantuml
C:\\out.txt')
os.system(r'start C:\\out.png')
Button(master, text='Excel Location',command=callbackinput).grid(row=0)
Button(master, text='Output Location',command=callbackoutput).grid(row=1)
e1 = Entry(master, textvariable=inExcel)
e2 = Entry(master, textvariable=outText)
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
Button(master, text='Run',command=running).grid(row=3)
master.after(0,commandline)
master.mainloop()