I am adding a GUI to a command line python program using Tkinter. So far, I have the existing program running as a subprocess in a text widget on my GUI. The usage for the original file is:
Python [SCRIPT] -i [PATH TO FILE]
I wanted to know if it is possible to change the "-i" argument so that I can replace it with an input from the Tkinter Open file dialog. If so, a nudge in the right direction would be very much appreciated! Thanks in advance.