My question is almost the same as this one: Widget to Display subprocess stdout? but a step further.
I have the following code (python2.7):
def btnGo
Just in case someone else is looking for it...
log_box_1 = tk.Text(root, borderwidth=3, relief="sunken") with subprocess.Popen("ls -la", shell=True, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True) as p: for line in p.stdout: log_box_1.insert(tk.END, line)
From here