well basically what i am trying to do is that i want to show the output being executed in a graphical interface. i have a bash script that i am running using following code
from subprocess import call
myscript= call("Myscript.sh", shell=True)
Now this Myscript performs some set of tasks. i want to show everything that is happening in output to a graphical interface. some logic that i was trying to do here is by storing all the output in a string and printing it but it displays the final conlusion and its an integer value! i want all the strings to be printed of myscript working. code is as following that i tried :
root = Tk()
words=[]
a= call("sh amapt.sh", shell=True)
w = Label(root, text=words.append(a))
w.pack()
print w
root.mainloop()