The simplest way is to get the input, either from the console or gui, and then send the results to the child program. When you ask for input from the console, add a statement that opens Tkinter instead if some variable is set, and gets the info there.